$(function () {
    var cApi = new common();
    // var jiamikey = cApi.getQueryString('aesKey');
    // var appLoginToken = cApi.getQueryString('appLoginToken');
    //var titletext=""
    new Vue({
        el: "#app",
        data: {
            annexname: "附件",
            annexitem: [],
            annexindex: -1,
            nullname: "",
            Processdata: [], //用来装修改流程时获取到的数据

            // iostype:1,
            // isaddProcess:0,
            // billId:'',
            // billKey:"Flow_BreakDown",
            // jiamikey:"CCBD2B6A56E6F0D3",
            // hostUrl:'http://localhost:8089/',
            // appLoginToken:"9a48c3165f6a4b6fbb1e05de5bfb9098",
            // AppdeptName :"信息部",    //用户的部门
            // AppempName  :"许泽煜",   //用户的名称
            // AppdeptId :"244710",    //用户的部门id
            // AppempId  :"37753595",   //用户的名称id

            // hostUrl: 'http://test.rs.com/paoly/'  //测试服,
            hostUrl: cApi.comHostUrl, //正式服

            iostype: cApi.getQueryString("type"), //0ios 1安卓
            isaddProcess: cApi.getQueryString("isaddProcess"), //判断是新增流程还是修改流程 0新增，1修改
            billId: cApi.getQueryString("billId") || "",
            billKey: cApi.getQueryString("billKey"),
            jiamikey: cApi.getQueryString("jiamikey"),
            appLoginToken: cApi.getQueryString("appLoginToken"),
            AppdeptName: cApi.getQueryStringActivity("deptName"), //用户的部门
            AppempName: cApi.getQueryStringActivity("empName"), //用户的名称
            AppdeptId: cApi.getQueryString("deptId"), //用户的部门id
            AppempId: cApi.getQueryString("empId"), //用户的名称id

            isnewsave: true, //判断是新建保存还是保存后编辑修改保存
            isaddDetails: true, //判断明细是新增还是修改
            isdelete: false, //控制是否可以删除
            titletext: "",
            titletext1: "000",
            titletext2: "",
            titletext3: "",
            jibenSelectname: "", //存储是那个leixing点的下拉框
            selectIndex: -1, //存储明细点击的哪一条
            jibenxinxi: [], //存放基本信息
            jibenFile: [], //存放附件
            jibentimeinput: [], //存放基本信息中需要选择时间的
            xialadata: [], //存放下拉选项的

            billhead: [], //对应billhead传递给后台时的参数名，用于数据处理的

            mingxi: {
                //对应装单据明细内容的
                showtext4: "",
                example: [], //明细每一条的结构情况的例子
                midata: [], //存放明细数据的
                neitimeinput: [], //存放明细中需要选择事件的
                billdtl: [], //对应billdtl传递给后台时的参数名，用于数据处理的
                showPage: -1, //用于样式控制区分展示的
                beizhu: false, //是否有备注
            },
            nulldata: [], //不是必填的
            existsAttachment: true, //是否显示附件
            // PurchaseDetails:true,   //是否显示采购详情
            DocumentDetails: true, //是否显示单据明细

            selectitemData: [], //装下拉框里面选项的值
            isdeit: true, //控制能否编辑 true可编辑
            oldDetailsData: [], //存放点击明细要修改时的数据
            // showPage == 1 采购类， showPage == 2 一般付款申请流程， showPage == 3 调休申请单， showPage == 4 公章使用申请，showPage==5 采购类但是没有备注的 showPage == null， 用品（易耗品）领用
            jiamiiv: "16-Bytes--String",

            iv: "",
            key: "",

            ModelDetailsDataIndex: -1, //明细删除的index
            selectName: "", //下拉搜索
            clickIdentification: "", //点击哪个分类
            clickLevel: "", //点击哪个的上级分类
            clickLeixing: "", //点击哪个分类的名称

            imgaa: "",
            loadingtext: "", //提示语
            failurename: "", //失败提示语
        },
        mounted() {
            $(".bottom-btn2").hide();
            $(".bottom-btn22").hide();

            // alert(this.isaddProcess+"///"+this.billId);
            console.log(this.jiamikey + "====" + this.appLoginToken + "====" + this.billKey);
            this.iv = CryptoJS.enc.Utf8.parse(this.jiamiiv); //加密解密用的key
            this.key = CryptoJS.enc.Utf8.parse(this.jiamikey); //加密解密用的iv
            if (this.isaddProcess == 0) {
                this.addflow();
            } else {
                this.isdeit = false;
                this.flowbill();
            }

            var that = this;
            setTimeout(function () {
                that.timeinput();
            }, 1000);
            // this.timeinput();
            //console.log(this.iv+"==========="+this.key);
            console.log(this.jiamikey + "====" + this.appLoginToken + "====" + this.billKey);
            window.IOSReceiveAttachment = this.IOSReceiveAttachment;
            window.ReceiveAttachment = this.ReceiveAttachment;
            window.annexNOSelect = this.annexNOSelect;
        },
        watch: {
            selectName(val, oldVal) {
                var level = this.clickLevel;
                if (level != "") {
                    var uplevel = "";
                    var saixuanData = [];
                    for (var x = 0; x < this.jibenxinxi.length; x++) {
                        if (this.jibenxinxi[x].leixing == level) {
                            uplevel = this.jibenxinxi[x].id == undefined ? "-1" : this.jibenxinxi[x].id;
                        }
                    }

                    for (var i = 0; i < this.selectitemData[this.clickIdentification].length; i++) {
                        if (this.selectitemData[this.clickIdentification][i].deptId == uplevel) {
                            saixuanData.push(this.selectitemData[this.clickIdentification][i]);
                        }
                    }
                    if (val == "") {
                        this.xialadata = [];
                        this.xialadata = saixuanData;
                    } else {
                        var data = [];
                        for (var i = 0; i < saixuanData.length; i++) {
                            if (saixuanData[i].name.indexOf(val) > -1) {
                                data.push(saixuanData[i]);
                            }
                        }
                        this.xialadata = [];
                        this.xialadata = data;
                    }
                } else {
                    if (val == "") {
                        this.xialadata = [];
                        this.xialadata = this.selectitemData[this.clickIdentification];
                    } else {
                        var data = [];
                        for (var i = 0; i < this.xialadata.length; i++) {
                            if (this.xialadata[i].name.indexOf(val) > -1) {
                                data.push(this.xialadata[i]);
                            }
                        }
                        this.xialadata = [];
                        this.xialadata = data;
                    }
                }
            },
        },
        methods: {
            menoyToUppercase(money) {
                var cnNums = new Array("零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"); //汉字的数字
                var cnIntRadice = new Array("", "拾", "佰", "仟"); //基本单位
                var cnIntUnits = new Array("", "万", "亿", "兆"); //对应整数部分扩展单位
                var cnDecUnits = new Array("角", "分", "毫", "厘"); //对应小数部分单位
                var cnInteger = "整"; //整数金额时后面跟的字符
                var cnIntLast = "元"; //整数完以后的单位
                //最大处理的数字
                var maxNum = 999999999999999.9999;
                var integerNum; //金额整数部分
                var decimalNum; //金额小数部分
                //输出的中文金额字符串
                var chineseStr = "";
                var parts; //分离金额后用的数组，预定义
                if (money == "") {
                    return "";
                }

                money = parseFloat(money);
                if (money >= maxNum) {
                    //超出最大处理数字
                    return "超出最大处理数字";
                }
                if (money == 0) {
                    chineseStr = cnNums[0] + cnIntLast + cnInteger;
                    return chineseStr;
                }

                //四舍五入保留两位小数,转换为字符串
                money = Math.round(money * 100).toString();
                integerNum = money.substr(0, money.length - 2);
                decimalNum = money.substr(money.length - 2);

                //获取整型部分转换
                if (parseInt(integerNum, 10) > 0) {
                    var zeroCount = 0;
                    var IntLen = integerNum.length;
                    for (var i = 0; i < IntLen; i++) {
                        var n = integerNum.substr(i, 1);
                        var p = IntLen - i - 1;
                        var q = p / 4;
                        var m = p % 4;
                        if (n == "0") {
                            zeroCount++;
                        } else {
                            if (zeroCount > 0) {
                                chineseStr += cnNums[0];
                            }
                            //归零
                            zeroCount = 0;
                            chineseStr += cnNums[parseInt(n)] + cnIntRadice[m];
                        }
                        if (m == 0 && zeroCount < 4) {
                            chineseStr += cnIntUnits[q];
                        }
                    }
                    chineseStr += cnIntLast;
                }
                //小数部分
                if (decimalNum != "") {
                    var decLen = decimalNum.length;
                    for (var i = 0; i < decLen; i++) {
                        var n = decimalNum.substr(i, 1);
                        if (n != "0") {
                            chineseStr += cnNums[Number(n)] + cnDecUnits[i];
                        }
                    }
                }
                if (chineseStr == "") {
                    chineseStr += cnNums[0] + cnIntLast + cnInteger;
                } else if (decimalNum == "" || /^0*$/.test(decimalNum)) {
                    chineseStr += cnInteger;
                }
                return chineseStr;
            },
            daxie(leixing, data) {
                if (this.billKey == "Flow_RsPayment") {
                    if (leixing == "申请金额") {
                        this.$set(this.jibenxinxi[11], "neirong", this.menoyToUppercase(data));
                        console.log(this.menoyToUppercase(data));
                    }
                }
                if (this.billKey == "Flow_Payment") {
                    if (leixing == "申请金额") {
                        this.$set(this.jibenxinxi[13], "neirong", this.menoyToUppercase(data));
                        console.log(this.menoyToUppercase(data));
                    }
                }
            },
            // 我的oa账号  liuxh   123456
            // 当前app登录 token：f135a53e9a3f477981fa54baa6d34eda
            // AES加密码：1573542796040910

            sMDetailsClickfujian() { },
            modelclosefujian() {
                $(".smd-boxfujian").fadeOut();
                $(".s-M-Detailsfujian").fadeOut();
            },
            modelcloseDelete() {
                $(".smd-boxDelete").fadeOut();
                $(".s-M-DetailsDelete").fadeOut();
            },
            modelcloseDeleteProcess() {
                $(".smd-boxDeleteProcess").fadeOut();
                $(".s-M-DetailsDelete").fadeOut();
            },
            sMDetailsClickNull() {
                $(".smd-boxNull").fadeOut();
                $(".s-M-DetailsNull").fadeOut();
            },
            sMDetailsClickLoading() {
                $(".smd-boxLoading").fadeOut();
                $(".s-M-DetailsLoading").fadeOut();
            },
            sMDetailsClickfailure() {
                $(".smd-failure").fadeOut();
                $(".s-M-Detailsfailure").fadeOut();
            },
            //附件点击事件
            annexClick() {
                var int = this.jibenFile.length + 1;
                this.annexname = "附件" + int;
                $(".smd-boxfujian").fadeIn();
                $(".s-M-Detailsfujian").fadeIn();
            },
            //附件图片点击按钮
            annexImgClick() {
                $(".smd-boxfujian").fadeOut();
                $(".s-M-Detailsfujian").fadeOut();
                this.loadingtext = "加载中";
                $(".smd-boxLoading").fadeIn();
                $(".s-M-DetailsLoading").fadeIn();
                if (this.iostype == 1) {
                    android.selImage();
                } else {
                    window.webkit.messageHandlers.annexImgClick.postMessage("annexImgClick");
                }
            },
            //安卓ios用户没有选择文件返回后
            annexNOSelect() {
                $(".smd-boxLoading").fadeOut();
                $(".s-M-DetailsLoading").fadeOut();
            },
            //附件文件点击按钮
            annexFileClick() {
                $(".smd-boxfujian").fadeOut();
                $(".s-M-Detailsfujian").fadeOut();
                this.loadingtext = "加载中";
                $(".smd-boxLoading").fadeIn();
                $(".s-M-DetailsLoading").fadeIn();
                if (this.iostype == 1) {
                    android.selFile();
                } else {
                    window.webkit.messageHandlers.annexFileClick.postMessage("annexFileClick");
                }
            },
            //安卓接受附件
            ReceiveAttachment(data) {
                // $(".smd-boxLoading").fadeIn();
                // $(".s-M-DetailsLoading").fadeIn();

                var xiegangindex = data.indexOf("/") + 1;
                var fenhaoindex = data.indexOf(";");
                var suffix = data.substring(xiegangindex, fenhaoindex);
                // this.titletext1=suffix;
                var that = this;
                var int = this.jibenFile.length + 1;
                var azhi = this.annexname + "." + suffix;
                var imgname = "";
                var nametrue = false;

                for (var f = 0; f < this.jibenFile.length; f++) {
                    if (azhi == this.jibenFile[f].fileName) {
                        nametrue = true;
                    }
                }

                if (nametrue) {
                    imgname = this.annexname + int + "." + suffix;
                } else {
                    imgname = this.annexname + "." + suffix;
                }

                var dataURL = data.substring(data.indexOf("&&") + 2);
                dataURL = dataURL.substring(0, dataURL.length - 2);

                var dataweijiami = "{billId:" + that.billId + ",fileName:'" + imgname + "',billKey:'" + that.billKey + "'}";

                var jianmidata = that.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + that.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = that.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = that.SoapRequest("WorkFlowWebService", "upload", chanshu, dataURL, url); //调用请求

                if (fanhuidata.status == 0) {
                    var jiemifanhuidata = that.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                    var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式

                    console.log(zuizhongdata);
                    that.titletext2 = zuizhongdata;
                    that.jibenFile.push({
                        fileUpTime: zuizhongdata.fileUpTime,
                        fileName: zuizhongdata.fileName,
                        filePath: zuizhongdata.filePath,
                        uploadMan: zuizhongdata.uploadMan,
                        uploadManId: zuizhongdata.uploadManId,
                    });
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                } else {
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                    that.failurename = "上传失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
            },
            //IOS接受附件
            IOSReceiveAttachment(data) {
                // $(".smd-boxLoading").fadeIn();
                // $(".s-M-DetailsLoading").fadeIn();
                var data = data + "";
                var xiegangindex = data.indexOf(".");
                var fenhaoindex = data.indexOf("/");
                var suffix = data.substring(xiegangindex, fenhaoindex);
                this.titletext = suffix;
                // this.titletext1=suffix;
                var that = this;
                var int = this.jibenFile.length + 1;
                var azhi = this.annexname + "." + suffix;
                var imgname = "";
                var nametrue = false;
                for (var f = 0; f < this.jibenFile.length; f++) {
                    if (azhi == this.jibenFile[f].fileName) {
                        nametrue = true;
                    }
                }
                if (nametrue) {
                    imgname = this.annexname + int + "." + suffix;
                } else {
                    imgname = this.annexname + "." + suffix;
                }

                var dataURL = data.substring(data.indexOf("/") + 1);

                var dataweijiami = "{billId:" + that.billId + ",fileName:'" + imgname + "',billKey:'" + that.billKey + "'}";

                var jianmidata = that.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + that.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = that.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = that.SoapRequest("WorkFlowWebService", "upload", chanshu, dataURL, url); //调用请求
                if (fanhuidata.status == 0) {
                    var jiemifanhuidata = that.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                    var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                    console.log(zuizhongdata);
                    this.titletext2 = zuizhongdata;
                    that.jibenFile.push({
                        fileUpTime: zuizhongdata.fileUpTime,
                        fileName: zuizhongdata.fileName,
                        filePath: zuizhongdata.filePath,
                        uploadMan: zuizhongdata.uploadMan,
                        uploadManId: zuizhongdata.uploadManId,
                    });
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                } else {
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                    that.failurename = "上传失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
                //       var jiemifanhuidata = that.Decrypt(fanhuidata.data);  //请求成功返回的data进行解密
                //       var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式

                //      console.log(zuizhongdata)
                //      this.titletext2=zuizhongdata;

                //    // this.titletext1=data.substring(data.length-1,data.length);
                //     that.jibenFile.push({fileUpTime:zuizhongdata.fileUpTime,fileName:zuizhongdata.fileName,filePath:zuizhongdata.filePath,uploadMan:zuizhongdata.uploadMan,uploadManId:zuizhongdata.uploadManId})
            },

            //对应流程分类数据格式
            DataClassification(billKey) {
                switch (billKey) {
                    //请假申请
                    case "Flow_ApplyLeave":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "请假流程");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},

                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select" ,Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select" ,Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveType",
                                        leixing: "请假类别",
                                        neirong: billheaddata.leaveType,
                                        category: "bj-select",
                                        Identification: "leaveType",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.leaveTypeId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: billheaddata.reasons, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "休假时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "休假时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "加班时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "加班时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "请假天数", neirong: billheaddata.leaveDay, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveTime", leixing: "请假总时长", neirong: billheaddata.leaveDay, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName ,category:"nobj" ,id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"nobj" ,id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: "" ,category:"bj-select" ,Identification:'department',level:'',nextlevel:'申请人员',id:''},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: "" ,category:"bj-select" ,Identification:'employee',level:'申请部门',nextlevel:'',id:''},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveType",
                                        leixing: "请假类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "leaveType",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeFrom", leixing: "休假时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeTo", leixing: "休假时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "overTimeFrom", leixing: "加班时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "overTimeTo", leixing: "加班时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "请假天数", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveTime", leixing: "请假总时长", neirong: "", category: "bj" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "leaveTypeId", type: "int", idname: "请假类别" },
                            { leixing: "leaveDay", type: "int", idname: "" },
                            { leixing: "leaveTime", type: "int", idname: "" },
                            { leixing: "deptName", type: "string", idname: "" },
                            { leixing: "empName", type: "string", idname: "" },
                            { leixing: "leaveType", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                            { leixing: "leaveTimeFrom", type: "string", idname: "" },
                            { leixing: "leaveTimeTo", type: "string", idname: "" },
                            { leixing: "overTimeFrom", type: "string", idname: "" },
                            { leixing: "overTimeTo", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,leaveType:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //行政采购审批
                    case "Flow_Purchase":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "行政采购审批");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "经办部门", neirong: this.AppdeptName ,category:"nobj" ,id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "经办人", neirong: this.AppempName ,category:"nobj" ,id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "budgetAmount",
                                        leixing: "预算金额",
                                        neirong: billheaddata.budgetAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "purchaseAmount",
                                        leixing: "采购金额",
                                        neirong: billheaddata.purchaseAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "purpose", leixing: "用途", neirong: billheaddata.purpose, category: "bj" },

                                    // { keyname:"deptName", leixing: "申请部门", neirong: "" ,category:"bj-select" ,Identification:'department',level:'',nextlevel:'申请人员',id:''},
                                    // { keyname:"empName", leixing: "申请人员", neirong: "" ,category:"bj-select" ,Identification:'employee',level:'申请部门',nextlevel:'',id:''},
                                    // { keyname:"leaveType", leixing: "请假类别", neirong: "" ,category:"bj-select",Identification:'leaveType',level:'',nextlevel:'',id:""},
                                    // { keyname:"reasons", leixing: "请假原因", neirong: "" ,category:"bj" },
                                    // { keyname:"leaveTimeFrom", leixing: "开始时间", neirong: "" ,category:"bj-time" ,eventname:"外开始时间"},
                                    // { keyname:"leaveTimeTo", leixing: "结束时间", neirong: "" ,category:"bj-time" ,eventname:"外结束时间"},
                                    // { keyname:"leaveDay", leixing: "请假天数", neirong: "" ,category:"bj" }
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "经办部门", neirong: this.AppdeptName ,category:"nobj" ,id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "经办人", neirong: this.AppempName ,category:"nobj" ,id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong:this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "budgetAmount",
                                        leixing: "预算金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "purchaseAmount",
                                        leixing: "采购金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "purpose", leixing: "用途", neirong: "", category: "bj" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "budgetAmount", type: "int", idname: "" },
                            { leixing: "purchaseAmount", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },

                            // {leixing:'deptId',type:"int",idname:'申请部门'},
                            // {leixing:'empId',type:"int",idname:'申请人员'},
                            // {leixing:'leaveTypeId',type:"int",idname:'请假类别'},
                            // {leixing:'leaveDay',type:"int",idname:''},
                            // {leixing:'deptName',type:"string",idname:''},
                            // {leixing:'empName',type:"string",idname:''},
                            // {leixing:'leaveType',type:"string",idname:''},
                            // {leixing:'reasons',type:"string",idname:''},
                            // {leixing:'leaveTimeFrom',type:"string",idname:''},
                            // {leixing:'leaveTimeTo',type:"string",idname:''}
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "1",
                                        keyname: "mtlName",
                                        leixing: "物料名称：",
                                        neirong: billdtldata[d].mtlName,
                                        category: "bj-select",
                                        Identification: "oaMaterial",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].mtlId,
                                    },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "0" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "1",
                                    },
                                    { inputtype: "number", istype: "2", keyname: "price", leixing: "单价", neirong: billdtldata[d].price, category: "bj", textAlign: "2" },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                {
                                    inputtype: "string",
                                    istype: "1",
                                    keyname: "mtlName",
                                    leixing: "物料名称：",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "oaMaterial",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "0" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "1",
                                },
                                { inputtype: "number", istype: "2", keyname: "price", leixing: "单价", neirong: "", category: "bj", textAlign: "2" },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                                // {istype:"2",keyname:"mtlName", leixing: "单号：", neirong: "" ,category:"bj" },
                                // {istype:"2",keyname:"qty", leixing: "供应商：", neirong: "" ,category:"bj"},
                                // {istype:"2",keyname:"rowNo", leixing: "金额(元)：", neirong: "" ,category:"bj" }
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "mtlId", type: "int", idname: "物料名称：" },
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "unit", type: "string", idname: "" },
                                { leixing: "price", type: "int", idname: "" },
                                { leixing: "notes", type: "string", idname: "" },

                                // {leixing:'mtlNameId',type:"int",idname:'物料名称'},
                                // {leixing:'unitId',type:"int",idname:'单位'},
                                // {leixing:'mtlName',type:"string",idname:''},
                                // {leixing:'qty',type:"string",idname:''},
                                // {leixing:'unit',type:"string",idname:''},
                                // {leixing:'price',type:"string",idname:''},
                                // {leixing:'notes',type:"string",idname:''},
                                // {leixing:'rowNo',type:"string",idname:''}
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,oaMaterial:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //自助餐厅报餐流程
                    case "Flow_Restaurant":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "自助餐厅报餐流程");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName ,category:"nobj" ,id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"nobj" ,id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "haveMealFrom",
                                        leixing: "开始时间",
                                        neirong: billheaddata.haveMealFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "haveMealTo",
                                        leixing: "结束时间",
                                        neirong: billheaddata.haveMealTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "haveMealType",
                                        leixing: "用餐类型",
                                        neirong: billheaddata.haveMealType,
                                        category: "bj-select",
                                        Identification: "haveMeal",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.haveMealTypeId,
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName ,category:"nobj" ,id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"nobj" ,id:this.AppempId},
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "haveMealFrom", leixing: "开始时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "haveMealTo", leixing: "结束时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "haveMealType",
                                        leixing: "用餐类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "haveMeal",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "haveMealTypeId", type: "int", idname: "用餐类型" },
                            { leixing: "haveMealFrom", type: "string", idname: "" },
                            { leixing: "haveMealTo", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "haveMeal", [
                            { id: "1", name: "三餐" },
                            { id: "2", name: "午晚餐" },
                            { id: "3", name: "早餐" },
                            { id: "4", name: "午餐" },
                            { id: "5", name: "晚餐" },
                            { id: "6", name: "早午餐" },
                        ]);

                        break;
                    //用车申请
                    case "Flow_UseCar":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "用车申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "useEmp",
                                        leixing: "使用人",
                                        neirong: billheaddata.useEmp,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: billheaddata.useEmpId,
                                    },
                                    // {
                                    //     tishi: "必填",
                                    //     inputtype: "string",
                                    //     keyname: "useCarType",
                                    //     leixing: "用车类型",
                                    //     neirong: billheaddata.useCarType,
                                    //     category: "bj-select",
                                    //     Identification: "useCar",
                                    //     level: "",
                                    //     nextlevel: "",
                                    //     id: billheaddata.useCarTypeId,
                                    // },
                                    { tishi: "必填", inputtype: "string", keyname: "useCarDate", leixing: "出发时间", neirong: billheaddata.useCarDate, category: "bj-time", eventname: "出发时间" },
                                    // { tishi: "", inputtype: "number", keyname: "usedNumber", leixing: "使用公里数", neirong: billheaddata.usedNumber, category: "bj" },
                                    // {
                                    //     tishi: "必填",
                                    //     inputtype: "string",
                                    //     keyname: "useCarRegion",
                                    //     leixing: "用车区域",
                                    //     neirong: billheaddata.useCarRegion,
                                    //     category: "bj-select",
                                    //     Identification: "useCarregion",
                                    //     level: "",
                                    //     nextlevel: "",
                                    //     id: billheaddata.useCarRegionId,
                                    // },
                                    { tishi: "必填", inputtype: "string", keyname: "backDate", leixing: "返程时间", neirong: billheaddata.backDate, category: "bj-time", eventname: "返程时间" },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "用车事由", neirong: billheaddata.reason, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "useTel", leixing: "使用人电话", neirong: billheaddata.useTel, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "carNumber", leixing: "车牌号", neirong: billheaddata.carNumber, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "useAddr", leixing: "出发地", neirong: billheaddata.useAddr, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "backAddr", leixing: "返回地", neirong: billheaddata.backAddr, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "useEmp",
                                        leixing: "使用人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    // {
                                    //     tishi: "必填",
                                    //     inputtype: "string",
                                    //     keyname: "useCarType",
                                    //     leixing: "用车类型",
                                    //     neirong: "",
                                    //     category: "bj-select",
                                    //     Identification: "useCar",
                                    //     level: "",
                                    //     nextlevel: "",
                                    //     id: "",
                                    // },
                                    { tishi: "必填", inputtype: "string", keyname: "useCarDate", leixing: "出发时间", neirong: "", category: "bj-time", eventname: "出发时间" },
                                    // { tishi: "", inputtype: "number", keyname: "usedNumber", leixing: "使用公里数", neirong: "", category: "bj" },
                                    // {
                                    //     tishi: "必填",
                                    //     inputtype: "string",
                                    //     keyname: "useCarRegion",
                                    //     leixing: "用车区域",
                                    //     neirong: "",
                                    //     category: "bj-select",
                                    //     Identification: "useCarregion",
                                    //     level: "",
                                    //     nextlevel: "",
                                    //     id: "",
                                    // },
                                    { tishi: "必填", inputtype: "string", keyname: "backDate", leixing: "返程时间", neirong: "", category: "bj-time", eventname: "返程时间" },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "用车事由", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "useTel", leixing: "使用人电话", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "carNumber", leixing: "车牌号", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "useAddr", leixing: "出发地", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "backAddr", leixing: "返回地", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["用车事由", "使用人电话", "车牌号", "出发地", "返回地",];
                        this.jibentimeinput = [{ name: "出发时间", type: "data" }, { name: "返程时间", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "useEmpId", type: "int", idname: "使用人" },
                            // { leixing: "useCarTypeId", type: "int", idname: "用车类型" },
                            // { leixing: "useCarRegionId", type: "int", idname: "用车区域" },
                            { leixing: "useCarDate", type: "string", idname: "" },
                            { leixing: "backDate", type: "string", idname: "" },
                            // { leixing: "usedNumber", type: "int", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                            { leixing: "useTel", type: "string", idname: "" },
                            { leixing: "carNumber", type: "string", idname: "" },
                            { leixing: "useAddr", type: "string", idname: "" },
                            { leixing: "backAddr", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        // this.$set(this.selectitemData, "useCar", [
                        //     { id: "1", name: "普通小车" },
                        //     { id: "2", name: "商务车" },
                        //     { id: "3", name: "皮卡车" },
                        // ]);
                        // this.$set(this.selectitemData, "useCarregion", [
                        //     { id: "1", name: "厦门泉州" },
                        //     { id: "2", name: "省内" },
                        //     { id: "3", name: "省外" },
                        // ]);
                        break;
                    //招待用品申购单
                    case "Flow_Receptions":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "招待用品申购单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: billheaddata.emergency,
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.emergencyId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "requireDate",
                                        leixing: "需求时间",
                                        neirong: billheaddata.requireDate,
                                        category: "bj-time",
                                        eventname: "需求时间",
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "requireDate", leixing: "需求时间", neirong: "", category: "bj-time", eventname: "需求时间" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [{ name: "需求时间", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "emergencyId", type: "int", idname: "紧急程度" },
                            { leixing: "requireDate", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: billdtldata[d].mtlName, category: "bj" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "0",
                                    },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "2" },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: "", category: "bj" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "0",
                                },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "2" },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "mtlName", type: "string", idname: "" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "notes", type: "string", idname: "" },
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "emergencY", [
                            { id: "1", name: "一般" },
                            { id: "2", name: "紧急" },
                        ]);
                        break;
                    //车辆预约登记
                    case "Flow_VehicleReservation":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "车辆预约登记");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "岗位",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "reEmpName",
                                        leixing: "接待人",
                                        neirong: billheaddata.reEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: billheaddata.reEmpId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "name", leixing: "客户姓名", neirong: billheaddata.name, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "tel", leixing: "客户手机号", neirong: billheaddata.tel, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "lPNo",
                                        leixing: "客户车牌号",
                                        neirong: billheaddata.lPNo,
                                        category: "bj",
                                        maxlength: "if(value.length>8)value=value.slice(0,8)",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "dtvalid", leixing: "进入时间", neirong: billheaddata.dtvalid, category: "bj-time", eventname: "进入时间" },
                                    { tishi: "", inputtype: "string", keyname: "content", leixing: "进入原因", neirong: billheaddata.content, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "岗位",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "reEmpName",
                                        leixing: "接待人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "name", leixing: "客户姓名", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "tel", leixing: "客户手机号", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "lPNo",
                                        leixing: "客户车牌号",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "if(value.length>8)value=value.slice(0,8)",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "dtvalid", leixing: "进入时间", neirong: "", category: "bj-time", eventname: "进入时间" },
                                    { tishi: "", inputtype: "string", keyname: "content", leixing: "进入原因", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["进入原因"];
                        this.jibentimeinput = [{ name: "进入时间", type: "datatime" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "positionId", type: "int", idname: "岗位" },
                            { leixing: "reEmpId", type: "int", idname: "接待人" },
                            { leixing: "name", type: "string", idname: "" },
                            { leixing: "tel", type: "int", idname: "" },
                            { leixing: "lPNo", type: "string", idname: "" },
                            { leixing: "dtvalid", type: "string", idname: "" },
                            { leixing: "content", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,position:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //员工活动申请
                    case "Flow_ApplyActivity":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "员工活动申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "activityDate",
                                        leixing: "活动日期",
                                        neirong: billheaddata.activityDate,
                                        category: "bj-time",
                                        eventname: "活动日期",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "money",
                                        leixing: "预计金额",
                                        neirong: billheaddata.money,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "申请部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "oDeptName",
                                        leixing: "归属部门",
                                        neirong: billheaddata.oDeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.oDeptId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "申请原因", neirong: billheaddata.reason, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "activityDate", leixing: "活动日期", neirong: "", category: "bj-time", eventname: "活动日期" },
                                    { tishi: "金额必须大于0", inputtype: "number", keyname: "money", leixing: "预计金额", neirong: "", category: "bj", maxlength: "value=value.replace(/-/g,'')" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "申请部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "申请部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "oDeptName",
                                        leixing: "归属部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "申请原因", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["归属部门"];
                        this.jibentimeinput = [{ name: "活动日期", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "经办人" },
                            { leixing: "oDeptId", type: "int", idname: "归属部门" },
                            { leixing: "activityDate", type: "string", idname: "" },
                            { leixing: "money", type: "string", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //招待住宿申请
                    case "Entertain":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "招待住宿申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "number", keyname: "liveNumber", leixing: "招待人数", neirong: billheaddata.liveNumber, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "roomNumber", leixing: "房间数量", neirong: billheaddata.roomNumber, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "liveName", leixing: "住宿人姓名", neirong: billheaddata.liveName, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "liveCompany", leixing: "住宿人单位", neirong: billheaddata.liveCompany, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "livePost", leixing: "住宿人职务", neirong: billheaddata.livePost, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "checkInDate",
                                        leixing: "拟入住日期",
                                        neirong: billheaddata.checkInDate,
                                        category: "bj-time",
                                        eventname: "拟入住日期",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveDate",
                                        leixing: "拟离店日期",
                                        neirong: billheaddata.leaveDate,
                                        category: "bj-time",
                                        eventname: "拟离店日期",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "招待事由", neirong: billheaddata.reason, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "number", keyname: "liveNumber", leixing: "招待人数", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "roomNumber", leixing: "房间数量", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "liveName", leixing: "住宿人姓名", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "liveCompany", leixing: "住宿人单位", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "livePost", leixing: "住宿人职务", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "checkInDate", leixing: "拟入住日期", neirong: "", category: "bj-time", eventname: "拟入住日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDate", leixing: "拟离店日期", neirong: "", category: "bj-time", eventname: "拟离店日期" },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "招待事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["招待事由"];
                        this.jibentimeinput = [
                            { name: "拟入住日期", type: "data" },
                            { name: "拟离店日期", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "liveNumber", type: "int", idname: "" },
                            { leixing: "roomNumber", type: "int", idname: "" },
                            { leixing: "liveName", type: "string", idname: "" },
                            { leixing: "liveCompany", type: "string", idname: "" },
                            { leixing: "livePost", type: "string", idname: "" },
                            { leixing: "checkInDate", type: "string", idname: "" },
                            { leixing: "leaveDate", type: "string", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //招待申请
                    case "Flow_Entertain":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "招待申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "招待类型",
                                        neirong: billheaddata.applyType,
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.applyTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "money",
                                        leixing: "预计金额",
                                        neirong: billheaddata.money,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "oEmpName",
                                        leixing: "陪同人员",
                                        neirong: billheaddata.oEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.oEmpId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "招待事由", neirong: billheaddata.reason, category: "bj" },
                                    {
                                        tishi: "", inputtype: "string", keyname: "guests", leixing: "招待对象", neirong: billheaddata.guests, category: "bj"
                                    },
                                    {
                                        tishi: "", inputtype: "string", keyname: "receptionAddr", leixing: "招待地点", neirong: billheaddata.receptionAddr, category: "bj"
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong:this.AppempName,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "招待类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "金额必须大于0", inputtype: "number", keyname: "money", leixing: "预计金额", neirong: "", category: "bj", maxlength: "value=value.replace(/-/g,'')" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "oEmpName",
                                        leixing: "陪同人员",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "招待事由", neirong: "", category: "bj" },
                                    {
                                        tishi: "", inputtype: "string", keyname: "guests", leixing: "招待对象", neirong: billheaddata.guests, category: "bj"
                                    },
                                    {
                                        tishi: "", inputtype: "string", keyname: "receptionAddr", leixing: "招待地点", neirong: billheaddata.receptionAddr, category: "bj"
                                    },
                                ];
                        this.nulldata = ["归属部门"];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "projectId", type: "int", idname: "归属项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            { leixing: "oEmpId", type: "int", idname: "陪同人员" },
                            { leixing: "applyTypeId", type: "int", idname: "申请类型" },
                            { leixing: "money", type: "int", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                            { leixing: "guests", type: "string", idname: "" },
                            { leixing: "receptionAddr", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,project:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "applyTypE", [
                            { id: "1", name: "内部招待" },
                            { id: "2", name: "外部招待" },
                            { id: "3", name: "业务需求" },
                        ]);
                        break;
                    //调休申请单
                    case "Flow_BreakDown":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "调休申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "调休", category: "nobj", id: "1" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "开始时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "结束时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDay", leixing: "休假时长", neirong: billheaddata.leaveDay, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: billheaddata.reasons, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "调休", category: "nobj", id: "1" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeFrom", leixing: "开始时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeTo", leixing: "结束时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDay", leixing: "休假时长", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["休假事由"];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "leaveTypeId", type: "int", idname: "类型" },
                            { leixing: "leaveTimeFrom", type: "string", idname: "" },
                            { leixing: "leaveTimeTo", type: "string", idname: "" },
                            { leixing: "leaveDay", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeFrom",
                                        leixing: "开始时间：",
                                        neirong: billdtldata[d].overtimeFrom,
                                        category: "bj-time",
                                        eventname: "内开始时间",
                                    },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeTo",
                                        leixing: "结束时间：",
                                        neirong: billdtldata[d].overtimeTo,
                                        category: "bj-time",
                                        eventname: "内结束时间",
                                    },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "加班时间：",
                            example: [
                                { inputtype: "string", istype: "2", keyname: "overtimeFrom", leixing: "开始时间：", neirong: "", category: "bj-time", eventname: "内开始时间" },
                                { inputtype: "string", istype: "2", keyname: "overtimeTo", leixing: "结束时间：", neirong: "", category: "bj-time", eventname: "内结束时间" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [
                                { name: "内开始时间", type: "datatime" },
                                { name: "内结束时间", type: "datatime" },
                            ],
                            billdtl: [
                                { leixing: "overtimeFrom", type: "string", idname: "" },
                                { leixing: "overtimeTo", type: "string", idname: "" },
                            ],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //人力需求申请
                    case "Flow_HumanNeed":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "人力需求申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "positions", leixing: "招聘岗位", neirong: billheaddata.positions, category: "bj" },
                                    { tishi: "", inputtype: "number", keyname: "peopleNumber", leixing: "招聘人数", neirong: billheaddata.peopleNumber, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "reason",
                                        leixing: "招聘原因",
                                        neirong: billheaddata.reason,
                                        category: "bj-select",
                                        Identification: "reasoN",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.reasonId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "resultDate", leixing: "到岗日期", neirong: billheaddata.resultDate, category: "bj-time", eventname: "到岗日期" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "sex",
                                        leixing: "性别",
                                        neirong: billheaddata.sex,
                                        category: "bj-select",
                                        Identification: "seX",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.sexId,
                                    },
                                    { tishi: "", inputtype: "number", keyname: "age", leixing: "年龄", neirong: billheaddata.age, category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "marry",
                                        leixing: "婚否",
                                        neirong: billheaddata.marry,
                                        category: "bj-select",
                                        Identification: "marrY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.marryId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "workExper", leixing: "工作经验", neirong: billheaddata.workExper, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "education", leixing: "专业及学历", neirong: billheaddata.education, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "certificate", leixing: "资格证", neirong: billheaddata.certificate, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "other", leixing: "其他", neirong: billheaddata.other, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "workSummary", leixing: "工作概述", neirong: billheaddata.workSummary, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "薪酬范围", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "positions", leixing: "招聘岗位", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "number", keyname: "peopleNumber", leixing: "招聘人数", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "reason",
                                        leixing: "招聘原因",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "reasoN",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "resultDate", leixing: "到岗日期", neirong: "", category: "bj-time", eventname: "到岗日期" },
                                    { tishi: "", inputtype: "string", keyname: "sex", leixing: "性别", neirong: "", category: "bj-select", Identification: "seX", level: "", nextlevel: "", id: "" },
                                    { tishi: "", inputtype: "number", keyname: "age", leixing: "年龄", neirong: "", category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "marry",
                                        leixing: "婚否",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "marrY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "workExper", leixing: "工作经验", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "education", leixing: "专业及学历", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "certificate", leixing: "资格证", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "other", leixing: "其他", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "workSummary", leixing: "工作概述", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "薪酬范围", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["招聘岗位", "招聘人数", "性别", "年龄", "婚否", "工作经验", "专业及学历", "资格证", "其他", "工作概述", "薪酬范围"];
                        this.jibentimeinput = [{ name: "到岗日期", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "reasonId", type: "int", idname: "招聘原因" },
                            { leixing: "sexId", type: "int", idname: "性别" },
                            { leixing: "marryId", type: "int", idname: "婚否" },
                            { leixing: "positions", type: "string", idname: "" },
                            { leixing: "peopleNumber", type: "int", idname: "" },
                            { leixing: "resultDate", type: "string", idname: "" },
                            { leixing: "age", type: "string", idname: "" },
                            { leixing: "workExper", type: "string", idname: "" },
                            { leixing: "education", type: "string", idname: "" },
                            { leixing: "certificate", type: "string", idname: "" },
                            { leixing: "other", type: "string", idname: "" },
                            { leixing: "workSummary", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "reasoN", [
                            { id: "1", name: "缺员补充" },
                            { id: "2", name: "扩大编制" },
                            { id: "3", name: "更替人员" },
                        ]);
                        this.$set(this.selectitemData, "seX", [
                            { id: "1", name: "男" },
                            { id: "2", name: "女" },
                        ]);
                        this.$set(this.selectitemData, "marrY", [
                            { id: "1", name: "未婚" },
                            { id: "2", name: "已婚" },
                        ]);
                        break;
                    //离职申请
                    case "Flow_Quit":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "离职申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "quitType",
                                        leixing: "离职类型",
                                        neirong: billheaddata.quitType,
                                        category: "bj-select",
                                        Identification: "quitType",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.quitTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: billheaddata.entryDate, category: "bj-time", eventname: "入职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "applyDate", leixing: "申请时间", neirong: billheaddata.applyDate, category: "bj-time", eventname: "申请时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "quitDate", leixing: "预离职时间", neirong: billheaddata.quitDate, category: "bj-time", eventname: "预离职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "离职原因", neirong: billheaddata.reason, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "jEmpName",
                                        leixing: "交接人",
                                        neirong: billheaddata.jEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.jEmpId,
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "quitType",
                                        leixing: "离职类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "quitType",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: "", category: "bj-time", eventname: "入职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "applyDate", leixing: "申请时间", neirong: "", category: "bj-time", eventname: "申请时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "quitDate", leixing: "预离职时间", neirong: "", category: "bj-time", eventname: "预离职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "离职原因", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "jEmpName",
                                        leixing: "交接人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [
                            { name: "入职时间", type: "data" },
                            { name: "申请时间", type: "data" },
                            { name: "预离职时间", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "positionId", type: "int", idname: "职务" },
                            { leixing: "quitTypeId", type: "int", idname: "离职类型" },
                            { leixing: "jEmpId", type: "int", idname: "交接人" },
                            { leixing: "entryDate", type: "string", idname: "" },
                            { leixing: "applyDate", type: "string", idname: "" },
                            { leixing: "quitDate", type: "string", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,position:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "quitType", [
                            { id: "1", name: "辞职" },
                            { id: "2", name: "合同期满" },
                            { id: "3", name: "协议离职" }
                        ]);

                        break;
                    //岗位异动
                    case "Flow_PostMove":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "岗位异动");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "原岗位职务",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "nposition",
                                        leixing: "新岗位职务",
                                        neirong: billheaddata.nposition,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.nPositionId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "ndeptName",
                                        leixing: "新部门",
                                        neirong: billheaddata.ndeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.nDeptId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "调动原因", neirong: billheaddata.reason, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "原岗位职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "nposition",
                                        leixing: "新岗位职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "ndeptName",
                                        leixing: "新部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "reason", leixing: "调动原因", neirong: "", category: "bj" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "positionId", type: "int", idname: "原岗位职务" },
                            { leixing: "nPositionId", type: "int", idname: "新岗位职务" },
                            { leixing: "nDeptId", type: "int", idname: "新部门" },
                            { leixing: "reason", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,position:true}";
                        this.loadDictionary(dataweijiami);

                        break;
                    //转正申请
                    case "Flow_Become":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "转正申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "cOType",
                                        leixing: "转正类型",
                                        neirong: billheaddata.cOType,
                                        category: "bj-select",
                                        Identification: "cOType",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.cOTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: billheaddata.entryDate, category: "bj-time", eventname: "入职时间" },
                                    { tishi: "", inputtype: "string", keyname: "education", leixing: "学历", neirong: billheaddata.education, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "major", leixing: "专业", neirong: billheaddata.major, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "tryTimeFrom",
                                        leixing: "试用开始",
                                        neirong: billheaddata.tryTimeFrom,
                                        category: "bj-time",
                                        eventname: "试用开始",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "tryTimeTo", leixing: "试用结束", neirong: billheaddata.tryTimeTo, category: "bj-time", eventname: "试用结束" },
                                    { tishi: "必填", inputtype: "number", keyname: "trySalary", leixing: "试用薪资", neirong: billheaddata.trySalary, category: "bj" },
                                    { tishi: "", inputtype: "number", keyname: "cOSalary", leixing: "转正薪资", neirong: billheaddata.cOSalary, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "evaluate", leixing: "员工评价", neirong: billheaddata.evaluate, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "working", leixing: "工作内容", neirong: billheaddata.working, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "cOType",
                                        leixing: "转正类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "cOType",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: "", category: "bj-time", eventname: "入职时间" },
                                    { tishi: "", inputtype: "string", keyname: "education", leixing: "学历", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "major", leixing: "专业", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "tryTimeFrom", leixing: "试用开始", neirong: "", category: "bj-time", eventname: "试用开始" },
                                    { tishi: "必填", inputtype: "string", keyname: "tryTimeTo", leixing: "试用结束", neirong: "", category: "bj-time", eventname: "试用结束" },
                                    { tishi: "必填", inputtype: "number", keyname: "trySalary", leixing: "试用薪资", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "number", keyname: "cOSalary", leixing: "转正薪资", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "evaluate", leixing: "员工评价", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "working", leixing: "工作内容", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["学历", "专业", "员工评价", "转正薪资"];
                        this.jibentimeinput = [
                            { name: "入职时间", type: "data" },
                            { name: "试用开始", type: "data" },
                            { name: "试用结束", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "cOTypeId", type: "int", idname: "转正类型" },
                            { leixing: "positionId", type: "int", idname: "职务" },
                            { leixing: "entryDate", type: "string", idname: "" },
                            { leixing: "education", type: "string", idname: "" },
                            { leixing: "major", type: "string", idname: "" },
                            { leixing: "tryTimeFrom", type: "string", idname: "" },
                            { leixing: "tryTimeTo", type: "string", idname: "" },
                            { leixing: "trySalary", type: "int", idname: "" },
                            { leixing: "cOSalary", type: "int", idname: "" },
                            { leixing: "evaluate", type: "string", idname: "" },
                            { leixing: "working", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,position:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "cOType", [
                            { id: "1", name: "正常转正" },
                            { id: "2", name: "提前转正" },
                            { id: "3", name: "延期考核" }
                        ]);
                        break;
                    //出差审批流程
                    case "Flow_Business":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "出差审批流程");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "outTimeFrom",
                                        leixing: "外开始时间",
                                        neirong: billheaddata.outTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "outTimeTo",
                                        leixing: "外结束时间",
                                        neirong: billheaddata.outTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "backtimeFrom",
                                        leixing: "返开始时间",
                                        neirong: billheaddata.backtimeFrom,
                                        category: "bj-time",
                                        eventname: "返开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "backtimeTo",
                                        leixing: "返结束时间",
                                        neirong: billheaddata.backtimeTo,
                                        category: "bj-time",
                                        eventname: "返结束时间",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "外出天数", neirong: billheaddata.leaveDay, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "外出事由", neirong: billheaddata.reasons, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "place", leixing: "外出地点", neirong: billheaddata.place, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "vehicle",
                                        leixing: "交通工具",
                                        neirong: billheaddata.vehicle,
                                        category: "bj-select",
                                        Identification: "vehiclE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.vehicleId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string", keyname: "sumMoney", leixing: "预算金额", neirong: billheaddata.sumMoney, category: "bj"
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong:this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: "",
                                    },
                                    //   { tishi: "必填", inputtype: "string", keyname: "projectName", leixing: "项目名称", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "outTimeFrom", leixing: "外开始时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "outTimeTo", leixing: "外结束时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "backtimeFrom", leixing: "返开始时间", neirong: "", category: "bj-time", eventname: "返开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "backtimeTo", leixing: "返结束时间", neirong: "", category: "bj-time", eventname: "返结束时间" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "外出天数", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "外出事由", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "place", leixing: "外出地点", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "vehicle",
                                        leixing: "交通工具",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "vehiclE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "sumMoney", leixing: "预算金额", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["外出地点", "预算金额"];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                            { name: "返开始时间", type: "datatime" },
                            { name: "返结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "projectId", type: "int", idname: "项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            { leixing: "vehicleId", type: "int", idname: "交通工具" },
                            { leixing: "outTimeFrom", type: "string", idname: "" },
                            { leixing: "outTimeTo", type: "string", idname: "" },
                            { leixing: "leaveDay", type: "int", idname: "" },
                            { leixing: "backtimeFrom", type: "string", idname: "" },
                            { leixing: "backtimeTo", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                            { leixing: "place", type: "string", idname: "" },
                            { leixing: "sumMoney", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,project:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "vehiclE", [
                            { id: "1", name: "飞机" },
                            { id: "2", name: "动车" },
                            { id: "3", name: "火车" },
                            { id: "4", name: "汽车" },
                            { id: "5", name: "其它" },
                        ]);
                        break;
                    //招商合同审批表
                    case "Flow_InvestContract":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "招商合同审批表");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "contractType",
                                        leixing: "合同类别",
                                        neirong: billheaddata.contractType,
                                        category: "bj-select",
                                        Identification: "contractTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.contractTypeId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "deaName",
                                        leixing: "客户名称",
                                        neirong: billheaddata.deaName,
                                        category: "bj-select",
                                        Identification: "dealer",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.dealerId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "contractDate",
                                        leixing: "合同日期",
                                        neirong: billheaddata.contractDate,
                                        category: "bj-time",
                                        eventname: "合同日期",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: billheaddata.contractMoney, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "备注", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "contractType",
                                        leixing: "合同类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "contractTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "deaName",
                                        leixing: "客户名称",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "dealer",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "contractDate", leixing: "合同日期", neirong: "", category: "bj-time", eventname: "合同日期" },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "备注", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["客户名称", "备注"];
                        this.jibentimeinput = [{ name: "合同日期", type: "data" }];
                        this.billhead = [
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "经办部门" },
                            { leixing: "empId", type: "int", idname: "经办人员" },
                            { leixing: "contractTypeId", type: "int", idname: "合同类别" },
                            { leixing: "dealerId", type: "int", idname: "客户名称" },
                            { leixing: "contractDate", type: "string", idname: "" },
                            { leixing: "contractMoney", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,dealer:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "contractTypE", [
                            { id: "1", name: "标准合同" },
                            { id: "2", name: "非标准合同" },
                        ]);
                        break;
                    //合同审批表
                    case "Flow_Contract":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "合同审批表");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "contractType",
                                        leixing: "合同类别",
                                        neirong: billheaddata.contractType,
                                        category: "bj-select",
                                        Identification: "contractType",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.contractTypeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "contractParty", leixing: "合同方", neirong: billheaddata.contractParty, category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "attachDept",
                                        leixing: "归属部门",
                                        neirong: billheaddata.attachDept,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.attachDeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "contractDate",
                                        leixing: "合同日期",
                                        neirong: billheaddata.contractDate,
                                        category: "bj-time",
                                        eventname: "合同日期",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: billheaddata.contractMoney, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "条款概要", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "contractType",
                                        leixing: "合同类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "contractType",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "contractParty", leixing: "合同方", neirong: "", category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "attachDept",
                                        leixing: "归属部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "contractDate", leixing: "合同日期", neirong: "", category: "bj-time", eventname: "合同日期" },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "条款概要", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["合同类别", "合同方", "条款概要", "归属部门"];
                        this.jibentimeinput = [{ name: "合同日期", type: "data" }];
                        this.billhead = [
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "经办部门" },
                            { leixing: "empId", type: "int", idname: "经办人员" },
                            { leixing: "contractTypeId", type: "int", idname: "合同类别" },
                            { leixing: "attachDeptId", type: "int", idname: "归属部门" },
                            { leixing: "contractParty", type: "string", idname: "" },
                            { leixing: "contractDate", type: "string", idname: "" },
                            { leixing: "contractMoney", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,contractType:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //印章外借使用申请
                    case "Flow_Cachet":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "印章外借使用申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "needDate", leixing: "需求时间", neirong: billheaddata.needDate, category: "bj-time", eventname: "需求时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "backDate", leixing: "归还日期", neirong: billheaddata.backDate, category: "bj-time", eventname: "归还日期" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "cachetType",
                                        leixing: "用章类型",
                                        neirong: billheaddata.cachetType,
                                        category: "bj-select",
                                        Identification: "cachetTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.cachetTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "company",
                                        leixing: "公章公司",
                                        neirong: billheaddata.company,
                                        category: "bj-select",
                                        Identification: "companY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.companyId,
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "number", leixing: "公章数量", neirong: billheaddata.number, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用章事由", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong:this.AppdeptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "needDate", leixing: "需求时间", neirong: "", category: "bj-time", eventname: "需求时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "backDate", leixing: "归还日期", neirong: "", category: "bj-time", eventname: "归还日期" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "cachetType",
                                        leixing: "用章类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "cachetTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "company",
                                        leixing: "公章公司",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "companY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "number", leixing: "公章数量", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用章事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["用章事由"];
                        this.jibentimeinput = [
                            { name: "需求时间", type: "data" },
                            { name: "归还日期", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "cachetTypeId", type: "int", idname: "用章类型" },
                            { leixing: "companyId", type: "int", idname: "公章公司" },
                            { leixing: "needDate", type: "string", idname: "" },
                            { leixing: "backDate", type: "string", idname: "" },
                            { leixing: "number", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,contractType:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "cachetTypE", [
                            { id: "1", name: "公章" },
                            { id: "2", name: "合同章" },
                            { id: "3", name: "部门章" },
                            { id: "4", name: "证件" },
                        ]);
                        this.$set(this.selectitemData, "companY", [
                            { id: "1", name: "海西物流有限公司" },
                            { id: "2", name: "海丝石业" },
                            { id: "3", name: "福建海西石材交易中心" },
                            { id: "4", name: "三叶集团" },
                            { id: "5", name: "海西厦门" },
                            { id: "6", name: "海西文化传媒" },
                            { id: "7", name: "证件" },
                        ]);
                        break;
                    //公章使用申请
                    case "Flow_InCachet":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "公章使用申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用章事由", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong:this.AppdeptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用章事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["用章事由"];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    { inputtype: "string", istype: "2", keyname: "fileDetail", leixing: "用印文件明细：", neirong: billdtldata[d].fileDetail, category: "bj" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "cachetType",
                                        leixing: "用印类型：",
                                        neirong: billdtldata[d].cachetType,
                                        category: "bj-select",
                                        Identification: "cachetTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].cachetTypeId,
                                    },
                                    { inputtype: "number", istype: "2", keyname: "number", leixing: "用印数量：", neirong: billdtldata[d].number, category: "bj" },
                                    { inputtype: "string", istype: "2", keyname: "detail", leixing: "公司名称：", neirong: billdtldata[d].detail, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                { inputtype: "string", istype: "2", keyname: "fileDetail", leixing: "用印文件明细：", neirong: "", category: "bj" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "cachetType",
                                    leixing: "用印类型：",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "cachetTypE",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                },
                                { inputtype: "number", istype: "2", keyname: "number", leixing: "用印数量：", neirong: "", category: "bj" },
                                { inputtype: "string", istype: "2", keyname: "detail", leixing: "公司名称：", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "cachetTypeId", type: "int", idname: "用印类型：" },
                                { leixing: "fileDetail", type: "string", idname: "" },
                                { leixing: "number", type: "int", idname: "" },
                                { leixing: "detail", type: "string", idname: "" },
                            ],
                            showPage: 2,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "cachetTypE", [
                            { id: "1", name: "公章" },
                            { id: "2", name: "合同章" },
                            { id: "3", name: "部门章" },
                        ]);
                        break;
                    //海西股份刻章申请表
                    case "Flow_Chapter":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "公章使用申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterType",
                                        leixing: "印章类别",
                                        neirong: billheaddata.chapterType,
                                        category: "bj-select",
                                        Identification: "chapterTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.chapterTypeId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "申请日期", neirong: billheaddata.billdate, category: "bj-time", eventname: "申请日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "chapterContent", leixing: "印章内容", neirong: billheaddata.chapterContent, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterQuality",
                                        leixing: "印章材质",
                                        neirong: billheaddata.chapterQuality,
                                        category: "bj-select",
                                        Identification: "chapterQualitY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.chapterQualityId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterSituation",
                                        leixing: "刻章情况",
                                        neirong: billheaddata.chapterSituation,
                                        category: "bj-select",
                                        Identification: "chapterSituatioN",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.chapterSituationId,
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "chapterEmpName",
                                        leixing: "印章保管人",
                                        neirong: billheaddata.chapterEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.chapterEmpId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "startDate", leixing: "启用日期", neirong: billheaddata.startDate, category: "bj-time", eventname: "启用日期" },
                                    { tishi: "", inputtype: "string", keyname: "chapterSize", leixing: "印章尺寸", neirong: billheaddata.chapterSize, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "number", leixing: "数量", neirong: billheaddata.number, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "content", leixing: "申请原因", neirong: billheaddata.content, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterType",
                                        leixing: "印章类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "chapterTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "申请日期", neirong: "", category: "bj-time", eventname: "申请日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "chapterContent", leixing: "印章内容", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterQuality",
                                        leixing: "印章材质",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "chapterQualitY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "chapterSituation",
                                        leixing: "刻章情况",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "chapterSituatioN",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "chapterEmpName",
                                        leixing: "印章保管人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "startDate", leixing: "启用日期", neirong: "", category: "bj-time", eventname: "启用日期" },
                                    { tishi: "", inputtype: "string", keyname: "chapterSize", leixing: "印章尺寸", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "number", leixing: "数量", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "content", leixing: "申请原因", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["印章保管人", "印章尺寸"];
                        this.jibentimeinput = [
                            { name: "申请日期", type: "data" },
                            { name: "启用日期", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "chapterTypeId", type: "int", idname: "印章类别" },
                            { leixing: "chapterQualityId", type: "int", idname: "印章材质" },
                            { leixing: "chapterSituationId", type: "int", idname: "刻章情况" },
                            { leixing: "chapterEmpId", type: "int", idname: "印章保管人" },
                            { leixing: "billdate", type: "string", idname: "" },
                            { leixing: "chapterContent", type: "string", idname: "" },
                            { leixing: "startDate", type: "string", idname: "" },
                            { leixing: "chapterSize", type: "string", idname: "" },
                            { leixing: "number", type: "int", idname: "" },
                            { leixing: "content", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 2,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "chapterTypE", [
                            { id: "1", name: "部门" },
                            { id: "2", name: "公司" },
                            { id: "3", name: "业务" },
                            { id: "4", name: "财务" },
                        ]);
                        this.$set(this.selectitemData, "chapterQualitY", [
                            { id: "1", name: "橡胶" },
                            { id: "2", name: "原子印" },
                            { id: "3", name: "光敏印" },
                            { id: "4", name: "塑胶" },
                            { id: "5", name: "木质" },
                            { id: "6", name: "铜质" },
                        ]);
                        this.$set(this.selectitemData, "chapterSituatioN", [
                            { id: "1", name: "初次" },
                            { id: "2", name: "复次" },
                        ]);
                        break;
                    //销售合同审批表
                    case "Flow_SaleContract":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "销售合同审批表");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "contractName", leixing: "合同名称", neirong: billheaddata.contractName, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "contractCode", leixing: "合同编号", neirong: billheaddata.contractCode, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "ownerName", leixing: "合同方", neirong: billheaddata.ownerName, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "gdeptName",
                                        leixing: "归属部门",
                                        neirong: billheaddata.gdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "归属人",
                                        id: billheaddata.gDeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "gEmpId",
                                        leixing: "归属人",
                                        neirong: billheaddata.gEmpId,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "归属部门",
                                        nextlevel: "",
                                        id: billheaddata.gEmpId,
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: billheaddata.contractMoney, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "contractDate",
                                        leixing: "报审日期",
                                        neirong: billheaddata.contractDate,
                                        category: "bj-time",
                                        eventname: "报审日期",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "guaranteeMoney", leixing: "质保金", neirong: billheaddata.guaranteeMoney, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "条款概要", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "contractName", leixing: "合同名称", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "contractCode", leixing: "合同编号", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "ownerName", leixing: "合同方", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "gdeptName",
                                        leixing: "归属部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "归属人",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "gEmpId",
                                        leixing: "归属人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "归属部门",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "contractMoney", leixing: "合同金额", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "contractDate", leixing: "报审日期", neirong: "", category: "bj-time", eventname: "报审日期" },
                                    { tishi: "必填", inputtype: "number", keyname: "guaranteeMoney", leixing: "质保金", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "条款概要", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["条款概要"];
                        this.jibentimeinput = [{ name: "报审日期", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "经办部门" },
                            { leixing: "empId", type: "int", idname: "经办人员" },
                            { leixing: "gDeptId", type: "int", idname: "归属部门" },
                            { leixing: "gEmpId", type: "int", idname: "归属人" },
                            { leixing: "contractName", type: "string", idname: "" },
                            { leixing: "contractCode", type: "string", idname: "" },
                            { leixing: "ownerName", type: "string", idname: "" },
                            { leixing: "contractMoney", type: "int", idname: "" },
                            { leixing: "contractDate", type: "string", idname: "" },
                            { leixing: "guaranteeMoney", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },

                            { leixing: "startDate", type: "string", idname: "" },
                            { leixing: "chapterSize", type: "string", idname: "" },
                            { leixing: "number", type: "int", idname: "" },
                            { leixing: "content", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 2,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //一般付款申请(瑞石)
                    case "Flow_RsPayment":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "一般付款申请(瑞石)");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "付款方式",
                                        neirong: billheaddata.payModeName,
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.payModeId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "purpose", leixing: "付款用途", neirong: billheaddata.purpose, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "payee", leixing: "收款单位", neirong: billheaddata.payee, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bank", leixing: "开户行", neirong: billheaddata.bank, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bankAccount", leixing: "银行账号", neirong: billheaddata.bankAccount, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "contractAmount", leixing: "合同金额", neirong: billheaddata.contractAmount, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "prePayAmount", leixing: "前期已付", neirong: billheaddata.prePayAmount, category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "付款方式",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "purpose", leixing: "付款用途", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "payee", leixing: "收款单位", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bank", leixing: "开户行", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bankAccount", leixing: "银行账号", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "contractAmount", leixing: "合同金额", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "prePayAmount", leixing: "前期已付", neirong: "", category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "经办部门" },
                            { leixing: "empId", type: "int", idname: "经办人员" },
                            { leixing: "payModeId", type: "int", idname: "付款方式" },
                            { leixing: "payee", type: "string", idname: "" },
                            { leixing: "bank", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                            { leixing: "bankAccount", type: "string", idname: "" },
                            { leixing: "contractAmount", type: "int", idname: "" },
                            { leixing: "prePayAmount", type: "int", idname: "" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "applyAmountChinese", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 2,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,payMode:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //请假申请(瑞石)
                    case "Flow_RsApplyLeave":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "请假申请(瑞石)");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveType",
                                        leixing: "请假类别",
                                        neirong: billheaddata.leaveType,
                                        category: "bj-select",
                                        Identification: "leaveType",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.leaveTypeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "请假原因", neirong: billheaddata.reasons, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "开始时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "结束时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "请假天数", neirong: billheaddata.leaveDay, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveType",
                                        leixing: "请假类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "leaveType",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "请假原因", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeFrom", leixing: "开始时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeTo", leixing: "结束时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "请假天数", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["请假原因"];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "leaveTypeId", type: "int", idname: "请假类别" },
                            { leixing: "leaveDay", type: "int", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                            { leixing: "leaveTimeFrom", type: "string", idname: "" },
                            { leixing: "leaveTimeTo", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,leaveType:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //调休申请单(瑞石)
                    case "Flow_RsBreakDown":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "调休申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "调休", category: "nobj", id: "1" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "开始时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "结束时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDay", leixing: "休假时长", neirong: billheaddata.leaveDay, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: billheaddata.reasons, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "调休", category: "nobj", id: "1" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeFrom", leixing: "开始时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeTo", leixing: "结束时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDay", leixing: "休假时长", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "休假事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["休假事由"];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "leaveTypeId", type: "int", idname: "类型" },
                            { leixing: "leaveTimeFrom", type: "string", idname: "" },
                            { leixing: "leaveTimeTo", type: "string", idname: "" },
                            { leixing: "leaveDay", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeFrom",
                                        leixing: "开始时间：",
                                        neirong: billdtldata[d].overtimeFrom,
                                        category: "bj-time",
                                        eventname: "内开始时间",
                                    },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeTo",
                                        leixing: "结束时间：",
                                        neirong: billdtldata[d].overtimeTo,
                                        category: "bj-time",
                                        eventname: "内结束时间",
                                    },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "加班时间：",
                            example: [
                                { inputtype: "string", istype: "2", keyname: "overtimeFrom", leixing: "开始时间：", neirong: "", category: "bj-time", eventname: "内开始时间" },
                                { inputtype: "string", istype: "2", keyname: "overtimeTo", leixing: "结束时间：", neirong: "", category: "bj-time", eventname: "内结束时间" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [
                                { name: "内开始时间", type: "datatime" },
                                { name: "内结束时间", type: "datatime" },
                            ],
                            billdtl: [
                                { leixing: "overtimeFrom", type: "string", idname: "" },
                                { leixing: "overtimeTo", type: "string", idname: "" },
                            ],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;
                    //设备采购申请单
                    case "Flow_Equipment":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "设备采购申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "申购类型",
                                        neirong: billheaddata.applyType,
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.applyTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: billheaddata.emergency,
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.emergencyId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "requireDate",
                                        leixing: "需求时间",
                                        neirong: billheaddata.requireDate,
                                        category: "bj-time",
                                        eventname: "需求时间",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申购金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "empDeptName",
                                        leixing: "申购部门",
                                        neirong: billheaddata.empDeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.empDeptId,
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName   ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "申购类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "requireDate", leixing: "需求时间", neirong: "", category: "bj-time", eventname: "需求时间" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申购金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "empDeptName",
                                        leixing: "申购部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                ];
                        this.nulldata = ["申购部门"];
                        this.jibentimeinput = [{ name: "需求时间", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "applyTypeId", type: "int", idname: "申购类型" },
                            { leixing: "emergencyId", type: "int", idname: "紧急程度" },
                            { leixing: "empDeptId", type: "int", idname: "申购部门" },
                            { leixing: "requireDate", type: "string", idname: "" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: billdtldata[d].mtlName, category: "bj" },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "0" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "1",
                                    },
                                    { inputtype: "number", istype: "2", keyname: "model", leixing: "规格", neirong: billdtldata[d].model, category: "bj", textAlign: "2" },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: "", category: "bj" },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "0" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "1",
                                },
                                { inputtype: "number", istype: "2", keyname: "model", leixing: "规格", neirong: "", category: "bj", textAlign: "2" },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "unit", type: "string", idname: "" },
                                { leixing: "model", type: "int", idname: "" },
                                { leixing: "notes", type: "string", idname: "" },
                                { leixing: "mtlName", type: "string", idname: "" },
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "applyTypE", [
                            { id: "1", name: "生产类" },
                            { id: "2", name: "非生产类" },
                        ]);
                        this.$set(this.selectitemData, "emergencY", [
                            { id: "1", name: "一般" },
                            { id: "2", name: "紧急" },
                        ]);
                        break;
                    //设备外协维修流程
                    case "Flow_EquipService":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = false), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "设备外协维修流程");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "提出部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "提出人",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "提出人",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "提出部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "申请类型",
                                        neirong: billheaddata.applyType,
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.applyTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "handleDeptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.handleDeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人",
                                        id: billheaddata.handleDeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "handleEmpName",
                                        leixing: "经办人",
                                        neirong: billheaddata.handleEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.handleEmpId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "requireDate",
                                        leixing: "需求日期",
                                        neirong: billheaddata.requireDate,
                                        category: "bj-time",
                                        eventname: "需求日期",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "内容描述", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "提出部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "提出人",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "提出人",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "提出部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyType",
                                        leixing: "申请类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "applyTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "handleDeptName",
                                        leixing: "经办部门",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "handleEmpName",
                                        leixing: "经办人",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "requireDate", leixing: "需求日期", neirong: "", category: "bj-time", eventname: "需求日期" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "内容描述", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["备注", "内容描述"];
                        this.jibentimeinput = [{ name: "需求日期", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "提出部门" },
                            { leixing: "empId", type: "int", idname: "提出人" },
                            { leixing: "applyTypeId", type: "int", idname: "申请类型" },
                            { leixing: "handleDeptId", type: "int", idname: "经办部门" },
                            { leixing: "handleEmpId", type: "int", idname: "经办人" },
                            { leixing: "requireDate", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "applyTypE", [
                            { id: "1", name: "设备维修" },
                            { id: "2", name: "设备移装" },
                            { id: "3", name: "安装加工" },
                            { id: "4", name: "设备保养" },
                        ]);
                        break;
                    //一般付款申请
                    case "Flow_Payment":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "一般付款申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "billTitle",
                                        leixing: "标题",
                                        neirong: billheaddata.billTitle,
                                        category: "bj",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: billheaddata.deptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: billheaddata.deptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: billheaddata.empName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: billheaddata.empId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "付款方式",
                                        neirong: billheaddata.payModeName,
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.payModeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "amountType",
                                        leixing: "费用类型",
                                        neirong: billheaddata.amountType,
                                        category: "bj-select",
                                        Identification: "amountTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.amountTypeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        relateId: "empId",
                                        relateKey: "pEmpName",
                                        relateDict: "employee",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    //   {
                                    //       tishi: "必填",
                                    //       inputtype: "string",
                                    //       keyname: "payment",
                                    //       leixing: "付款单位",
                                    //       neirong: billheaddata.payment,
                                    //       category: "bj-select",
                                    //       Identification: "paymenT",
                                    //       level: "",
                                    //       nextlevel: "",
                                    //       id: billheaddata.paymentId,
                                    //   },
                                    { tishi: "必填", inputtype: "string", keyname: "payee", leixing: "收款单位", neirong: billheaddata.payee, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bank", leixing: "开户行", neirong: billheaddata.bank, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "bankAccount", leixing: "银行账号", neirong: billheaddata.bankAccount, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "contractAmount", leixing: "合同金额", neirong: billheaddata.contractAmount, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "prePayAmount", leixing: "前期已付", neirong: billheaddata.prePayAmount, category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "付款用途",
                                        neirong: billheaddata.purpose,
                                        category: "bj",
                                    },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "deptName",
                                        leixing: "经办部门",
                                        neirong: this.AppdeptName,
                                        category: "bj-select",
                                        Identification: "department",
                                        level: "",
                                        nextlevel: "经办人员",
                                        id: this.AppdeptId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "empName",
                                        leixing: "经办人员",
                                        neirong: this.AppempName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "经办部门",
                                        nextlevel: "",
                                        id: this.AppempId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "付款方式",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    //   {
                                    //       tishi: "必填",
                                    //       inputtype: "string",
                                    //       keyname: "amountType",
                                    //       leixing: "费用类型",
                                    //       neirong: "",
                                    //       category: "bj-select",
                                    //       Identification: "amountTypE",
                                    //       level: "",
                                    //       nextlevel: "",
                                    //       id: "",
                                    //   },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "amountType",
                                        leixing: "费用类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "amountTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    //   {
                                    //       tishi: "必填",
                                    //       inputtype: "string",
                                    //       keyname: "payment",
                                    //       leixing: "付款单位",
                                    //       neirong: "",
                                    //       category: "bj-select",
                                    //       Identification: "paymenT",
                                    //       level: "",
                                    //       nextlevel: "",
                                    //       id: "",
                                    //   },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        relateId: "empId",
                                        relateKey: "pEmpName",
                                        relateDict: "employee",
                                        id: "",
                                    },
                                    //   { tishi: "必填", inputtype: "string", keyname: "projectName", leixing: "项目名称", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    //   {
                                    //       tishi: "必填",
                                    //       inputtype: "string",
                                    //       keyname: "pEmpName",
                                    //       leixing: "项目经理名称",
                                    //       neirong: "",
                                    //       category: "bj-select",
                                    //       Identification: "employee",
                                    //       level: "",
                                    //       nextlevel: "",
                                    //       id: "",
                                    //   },

                                    {
                                        tishi: "选填",
                                        inputtype: "string",
                                        keyname: "payee",
                                        leixing: "收款单位",
                                        neirong: "",
                                        category: "bj",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "bank",
                                        leixing: "开户行",
                                        neirong: "",
                                        category: "bj",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "bankAccount",
                                        leixing: "银行账号",
                                        neirong: "",
                                        category: "bj",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "number",
                                        keyname: "contractAmount",
                                        leixing: "合同金额",
                                        neirong: "",
                                        category: "bj",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "number",
                                        keyname: "prePayAmount",
                                        leixing: "前期已付",
                                        neirong: "",
                                        category: "bj",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "applyAmountChinese",
                                        leixing: "金额(大写)",
                                        neirong: billheaddata.applyAmountChinese,
                                        category: "nobj",
                                    },
                                    {
                                        tishi: "选填",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "付款用途",
                                        neirong: "",
                                        category: "bj",
                                    },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "经办部门" },
                            { leixing: "empId", type: "int", idname: "经办人员" },
                            { leixing: "payModeId", type: "int", idname: "付款方式" },
                            { leixing: "amountTypeId", type: "int", idname: "费用类型" },
                            // { leixing: "paymentId", type: "int", idname: "付款单位" },
                            { leixing: "projectId", type: "int", idname: "项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            { leixing: "payee", type: "string", idname: "" },
                            { leixing: "bank", type: "string", idname: "" },
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "bankAccount", type: "string", idname: "" },
                            { leixing: "contractAmount", type: "int", idname: "" },
                            { leixing: "prePayAmount", type: "int", idname: "" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                            { leixing: "applyAmountChinese", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 2,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,payMode:true,project:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "amountTypE", [
                            { id: "1", name: "差旅费" },
                            { id: "2", name: "员工福利费" },
                            { id: "3", name: "交际应酬费" },
                            { id: "4", name: "其他费用" },
                        ]);
                        this.$set(this.selectitemData, "paymenT", [
                            { id: "1", name: "海丝石业有限公司" },
                            { id: "2", name: "海西物流股份有限公司" },
                            { id: "3", name: "福建海西石材交易中心有限公司" },
                            { id: "4", name: "泉州市海西文化传媒有限公司" },
                            { id: "5", name: "海西（厦门）物流有限公司" },
                            { id: "6", name: "福建三叶集团有限公司" },
                            { id: "7", name: "泉州海西石材有限公司" },
                        ]);
                        break;
                    //固定资产申购单
                    case "Flow_FixedAssets":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "固定资产申购单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: billheaddata.emergency,
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.emergencyId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "requireDate",
                                        leixing: "需求时间",
                                        neirong: billheaddata.requireDate,
                                        category: "bj-time",
                                        eventname: "需求时间",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "sumMoney", leixing: "预算金额", neirong: billheaddata.sumMoney, category: "bj", eventname: "预算金额" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName   ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "requireDate", leixing: "需求时间", neirong: "", category: "bj-time", eventname: "需求时间" },
                                    { tishi: "必填", inputtype: "number", keyname: "sumMoney", leixing: "预算金额", neirong: "", category: "bj", eventname: "预算金额" },
                                ];
                        this.nulldata = ["申购部门"];
                        this.jibentimeinput = [{ name: "需求时间", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "applyTypeId", type: "int", idname: "申购类型" },
                            { leixing: "emergencyId", type: "int", idname: "紧急程度" },
                            { leixing: "empDeptId", type: "int", idname: "申购部门" },
                            { leixing: "requireDate", type: "string", idname: "" },
                            { leixing: "sumMoney", type: "string", idname: "预算金额" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: billdtldata[d].mtlName, category: "bj" },
                                    { inputtype: "string", istype: "2", keyname: "model", leixing: "规格", neirong: billdtldata[d].model, category: "bj", textAlign: "0" },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "1" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "2",
                                    },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: "", category: "bj" },
                                { inputtype: "string", istype: "2", keyname: "model", leixing: "规格", neirong: "", category: "bj", textAlign: "0" },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "1" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "2",
                                },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "notes", type: "string", idname: "" },
                                { leixing: "mtlName", type: "string", idname: "" },
                                { leixing: "model", type: "string", idname: "" },
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "emergencY", [
                            { id: "1", name: "一般" },
                            { id: "2", name: "紧急" },
                        ]);
                        break;
                    //广告制作申请单
                    case "Flow_Advertising":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "广告制作申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: billheaddata.emergency,
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.emergencyId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "requireDate",
                                        leixing: "需求时间",
                                        neirong: billheaddata.requireDate,
                                        category: "bj-time",
                                        eventname: "需求时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectType",
                                        leixing: "项目类型",
                                        neirong: billheaddata.projectType,
                                        category: "bj-select",
                                        Identification: "projectTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.projectTypeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用途说明", neirong: billheaddata.purpose, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "projectContent", leixing: "项目内容", neirong: billheaddata.projectContent, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName   ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "emergency",
                                        leixing: "紧急程度",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "emergencY",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "requireDate", leixing: "需求时间", neirong: "", category: "bj-time", eventname: "需求时间" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectType",
                                        leixing: "项目类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "projectTypE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "用途说明", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "projectContent", leixing: "项目内容", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["用途说明"];
                        this.jibentimeinput = [{ name: "需求时间", type: "data" }];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "emergencyId", type: "int", idname: "紧急程度" },
                            { leixing: "projectTypeId", type: "int", idname: "项目类型" },
                            { leixing: "requireDate", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                            { leixing: "projectContent", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "emergencY", [
                            { id: "1", name: "一般" },
                            { id: "2", name: "紧急" },
                        ]);
                        this.$set(this.selectitemData, "projectTypE", [
                            { id: "1", name: "日常" },
                            { id: "2", name: "特殊" },
                        ]);
                        break;
                    //二手闲置处理申请单
                    case "Flow_UsedIdle":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "二手闲置处理申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "type",
                                        leixing: "是否设备类",
                                        neirong: billheaddata.type,
                                        category: "bj-select",
                                        Identification: "typE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.typeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "name", leixing: "名称", neirong: billheaddata.name, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "model", leixing: "规格型号", neirong: billheaddata.model, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "usedDateFrom",
                                        leixing: "开始日期",
                                        neirong: billheaddata.usedDateFrom,
                                        category: "bj-time",
                                        eventname: "开始日期",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "usedDateTo", leixing: "结束日期", neirong: billheaddata.usedDateTo, category: "bj-time", eventname: "结束日期" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "处理原因", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName   ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "type",
                                        leixing: "是否设备类",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "typE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.typeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "name", leixing: "名称", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "model", leixing: "规格型号", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "usedDateFrom", leixing: "开始日期", neirong: "", category: "bj-time", eventname: "开始日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "usedDateTo", leixing: "结束日期", neirong: "", category: "bj-time", eventname: "结束日期" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "处理原因", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["名称", "规格型号", "处理原因"];
                        this.jibentimeinput = [
                            { name: "开始日期", type: "data" },
                            { name: "结束日期", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "typeId", type: "int", idname: "是否设备类" },
                            { leixing: "name", type: "string", idname: "" },
                            { leixing: "model", type: "string", idname: "" },
                            { leixing: "usedDateFrom", type: "string", idname: "" },
                            { leixing: "usedDateTo", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "typE", [
                            { id: "0", name: "否" },
                            { id: "1", name: "是" },
                        ]);
                        break;
                    //废料处理申请单
                    case "Flow_WasteDisposal":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "废料处理申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "sumMoney",
                                        leixing: "预算金额",
                                        neirong: billheaddata.sumMoney,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName   ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "金额必须大于0", inputtype: "number", keyname: "sumMoney", leixing: "预算金额", neirong: "", category: "bj", maxlength: "value=value.replace(/-/g,'')" },
                                ];
                        this.nulldata = [];
                        this.jibentimeinput = [];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "sumMoney", type: "int", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: billdtldata[d].mtlName, category: "bj" },
                                    { inputtype: "string", istype: "2", keyname: "model", leixing: "规格", neirong: billdtldata[d].model, category: "bj", textAlign: "0" },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "1" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "2",
                                    },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                { inputtype: "string", istype: "1", keyname: "mtlName", leixing: "物料名称：", neirong: "", category: "bj" },
                                { inputtype: "string", istype: "2", keyname: "model", leixing: "规格", neirong: "", category: "bj", textAlign: "0" },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "1" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "2",
                                },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "model", type: "string", idname: "" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "notes", type: "string", idname: "" },
                                { leixing: "mtlName", type: "string", idname: "" },
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    //加班申请单
                    case "Flow_WorkOvertime":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "加班审批");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "加班", category: "nobj", id: billheaddata.leaveTypeId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "加班项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "加班事由", neirong: billheaddata.reasons, category: "bj" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveDay", leixing: "加班时长", neirong: billheaddata.leaveDay, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "加班项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveType", leixing: "类型", neirong: "加班", category: "nobj", id: "1" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveDay", leixing: "加班时长", neirong: "", category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "加班事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["加班事由"];
                        // this.jibentimeinput = [
                        //     { name: '外开始时间', type: 'datatime' },
                        //     { name: '外结束时间', type: 'datatime' }
                        // ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "leaveTypeId", type: "int", idname: "类型" },
                            { leixing: "projectId", type: "int", idname: "加班项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            // { leixing: 'leaveTimeFrom', type: "string", idname: '' },
                            // { leixing: 'leaveTimeTo', type: "string", idname: '' },
                            { leixing: "leaveDay", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeFrom",
                                        leixing: "开始时间：",
                                        neirong: billdtldata[d].overtimeFrom,
                                        category: "bj-time",
                                        eventname: "内开始时间",
                                    },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeTo",
                                        leixing: "结束时间：",
                                        neirong: billdtldata[d].overtimeTo,
                                        category: "bj-time",
                                        eventname: "内结束时间",
                                    },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "加班时间：",
                            example: [
                                { inputtype: "string", istype: "2", keyname: "overtimeFrom", leixing: "开始时间：", neirong: "", category: "bj-time", eventname: "内开始时间" },
                                { inputtype: "string", istype: "2", keyname: "overtimeTo", leixing: "结束时间：", neirong: "", category: "bj-time", eventname: "内结束时间" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [
                                { name: "内开始时间", type: "datatime" },
                                { name: "内结束时间", type: "datatime" },
                            ],
                            billdtl: [
                                { leixing: "overtimeFrom", type: "string", idname: "" },
                                { leixing: "overtimeTo", type: "string", idname: "" },
                            ],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,project:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    // 特殊申请审批流程
                    case "Flow_SpecialApplication":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "特殊申请审批");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "报审日期", neirong: billheaddata.billdate, category: "bj-time", eventname: "报审日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "经办人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "number", keyname: "sumMoney", leixing: "总金额", neirong: billheaddata.sumMoney, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "purpose", leixing: "条款概要", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "billdate",
                                        leixing: "报审日期",
                                        neirong: getDateTime(new Date(), "yyyy-MM-dd"),
                                        category: "bj-time",
                                        eventname: "报审日期",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "经办人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { inputtype: "number", keyname: "sumMoney", leixing: "总金额", neirong: "", category: "bj", textAlign: "2" },
                                    { inputtype: "string", isType: "3", keyname: "purpose", leixing: "条款概要", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["总金额", "条款概要"];
                        this.jibentimeinput = [{ name: "报审日期", type: "data" }];
                        this.billhead = [
                            { leixing: "billdate", type: "string", idname: "" },
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "经办人" },
                            { leixing: "sumMoney", type: "int", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    //物业服务审批单
                    case "Flow_PropertyServices":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "物业服务审批单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "单据日期", neirong: billheaddata.billdate, category: "bj-time", eventname: "单据日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "budgetAmount",
                                        leixing: "预算金额",
                                        neirong: billheaddata.budgetAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "purchaseAmount", leixing: "采购金额", neirong: billheaddata.purchaseAmount, category: "nobj" },
                                    { inputtype: "string", keyname: "purpose", leixing: "用途", neirong: billheaddata.purpose, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "单据日期", neirong: "", category: "bj-time", eventname: "单据日期" },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "budgetAmount",
                                        leixing: "预算金额",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { inputtype: "string", keyname: "purchaseAmount", leixing: "采购金额", neirong: "", category: "nobj" },
                                    { inputtype: "string", keyname: "purpose", leixing: "用途", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["申购部门", "采购金额"];
                        this.jibentimeinput = [{ name: "单据日期", type: "data" }];
                        this.billhead = [
                            { leixing: "billdate", type: "string", idname: "" },
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "budgetAmount", type: "int", idname: "" },
                            { leixing: "empDeptId", type: "int", idname: "申购部门" },
                            { leixing: "purpose", type: "string", idname: "" },
                            { leixing: "purchaseAmount", type: "int", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "1",
                                        keyname: "mtlName",
                                        leixing: "物料名称：",
                                        neirong: billdtldata[d].mtlName,
                                        category: "bj-select",
                                        Identification: "oaMaterial",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].mtlId,
                                    },
                                    { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: billdtldata[d].qty, category: "bj", textAlign: "1" },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "unit",
                                        leixing: "单位",
                                        neirong: billdtldata[d].unit,
                                        category: "bj-select",
                                        Identification: "unit",
                                        level: "",
                                        nextlevel: "",
                                        id: billdtldata[d].unitId,
                                        textAlign: "1",
                                    },
                                    { inputtype: "string", istype: "2", keyname: "price", leixing: "单价", neirong: billdtldata[d].price, category: "bj", textAlign: "2" },
                                    { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: billdtldata[d].notes, category: "bj" },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "",
                            example: [
                                {
                                    inputtype: "string",
                                    istype: "1",
                                    keyname: "mtlName",
                                    leixing: "物料名称：",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "oaMaterial",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                },
                                { inputtype: "number", istype: "2", keyname: "qty", leixing: "数量", neirong: "", category: "bj", textAlign: "1" },
                                {
                                    inputtype: "string",
                                    istype: "2",
                                    keyname: "unit",
                                    leixing: "单位",
                                    neirong: "",
                                    category: "bj-select",
                                    Identification: "unit",
                                    level: "",
                                    nextlevel: "",
                                    id: "",
                                    textAlign: "1",
                                },
                                { inputtype: "string", istype: "2", keyname: "price", leixing: "单价", neirong: "", category: "bj", textAlign: "2" },
                                { inputtype: "string", istype: "3", keyname: "notes", leixing: "备注", neirong: "", category: "bj" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [],
                            billdtl: [
                                { leixing: "mtlId", type: "int", idname: "物料名称：" },
                                { leixing: "unitId", type: "int", idname: "单位" },
                                { leixing: "unit", type: "string", idname: "" },
                                { leixing: "qty", type: "int", idname: "" },
                                { leixing: "price", type: "int", idname: "" },
                                { leixing: "notes", type: "string", idname: "" },
                            ],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,oaMaterial:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    // 培训费用申请
                    case "Flow_TrainingCosts":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "培训费用申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    {
                                        tishi: "必填", inputtype: "string", keyname: "billdate", leixing: "培训日期", neirong: billheaddata.billdate, category: "bj-time", eventname: "培训日期"
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: billheaddata.billTitle, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "number", keyname: "money", leixing: "培训费用", neirong: billheaddata.money, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "feeType",
                                        leixing: "费用类型",
                                        neirong: billheaddata.feeType,
                                        category: "bj-select",
                                        Identification: "feeTypeE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.feeTypeId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "content", leixing: "培训课程", neirong: billheaddata.content, category: "bj" },
                                ]
                                : [
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "billdate",
                                        leixing: "培训日期",
                                        neirong: getDateTime(new Date(), "yyyy-MM-dd"),
                                        category: "bj-time",
                                        eventname: "培训日期",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "billTitle", leixing: "标题", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { inputtype: "number", keyname: "money", leixing: "培训费用", neirong: "", category: "bj", textAlign: "2" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "feeType",
                                        leixing: "费用类型",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "feeTypeE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { inputtype: "string", isType: "3", keyname: "content", leixing: "培训课程", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["总金额", "培训课程"];
                        this.jibentimeinput = [{ name: "培训日期", type: "data" }];
                        this.billhead = [
                            { leixing: "billdate", type: "string", idname: "" },
                            { leixing: "billTitle", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "money", type: "int", idname: "" },
                            { leixing: "feeTypeId", type: "int", idname: "费用类型" },
                            { leixing: "content", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);

                        this.$set(this.selectitemData, "feeTypeE", [
                            { id: "0", name: "预算内" },
                            { id: "1", name: "预算外" },
                        ]);
                        break;

                    //诉讼需求申请单 冬子
                    case "Flow_Litigation":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "诉讼需求申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "", inputtype: "string", keyname: "no", leixing: "案件名称", neirong: billheaddata.no, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "billdate", leixing: "单据日期", neirong: billheaddata.billdate, category: "bj-time", eventname: "单据日期" },
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "name", leixing: "对方当事人", neirong: billheaddata.name, category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "company",
                                        leixing: "涉诉单位",
                                        neirong: billheaddata.company,
                                        category: "bj-select",
                                        Identification: "companyE",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.companyIds,
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "money",
                                        leixing: "起诉金额",
                                        neirong: billheaddata.money,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "litigationMoney",
                                        leixing: "诉讼费用",
                                        neirong: billheaddata.litigationMoney,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "情况介绍", neirong: billheaddata.reason, category: "bj" },
                                ]
                                : [
                                    { tishi: "", inputtype: "string", keyname: "no", leixing: "案件名称", neirong: "", category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "billdate",
                                        leixing: "单据日期",
                                        neirong: getDateTime(new Date(), "yyyy-MM-dd"),
                                        category: "bj-time",
                                        eventname: "单据日期",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "", inputtype: "string", keyname: "name", leixing: "对方当事人", neirong: "", category: "bj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "company",
                                        leixing: "涉诉单位",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "companyE",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    // { tishi: '', inputtype: 'string', keyname: "feeType", leixing: "费用类型", neirong: "", category: "bj-select", Identification: 'feeTypeE', level: '', nextlevel: '', id: "" },

                                    { tishi: "金额必须大于0", inputtype: "number", keyname: "money", leixing: "起诉金额", neirong: "", category: "bj", maxlength: "value=value.replace(/-/g,'')" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "litigationMoney",
                                        leixing: "诉讼费用",
                                        neirong: "",
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'')",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "reason", leixing: "情况介绍", neirong: "", category: "bj" },
                                ];

                        this.nulldata = ["案件名称", "单据日期", "申请部门", "申请人", "对方当事人", "涉诉单位", "起诉金额", "诉讼费用", "情况介绍"];
                        this.jibentimeinput = [{ name: "单据日期", type: "data" }];

                        this.billhead = [
                            { leixing: "no", type: "string", idname: "" },
                            { leixing: "billdate", type: "string", idname: "" },
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "name", type: "string", idname: "" },
                            { leixing: "companyIds", type: "custom", idname: "涉诉单位" },

                            { leixing: "money", type: "int", idname: "" },
                            { leixing: "litigationMoney", type: "int", idname: "" },
                            { leixing: "reason", type: "string", idname: "" },
                        ];

                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,oaMaterial:true,unit:true}";
                        this.loadDictionary(dataweijiami);
                        this.$set(this.selectitemData, "companyE", [
                            { id: "1", name: "原告", multiple: true },
                            { id: "2", name: "被告", multiple: true },
                            { id: "3", name: "上诉人", multiple: true },
                            { id: "4", name: "被上诉人", multiple: true },
                            { id: "5", name: "第三人", multiple: true },
                        ]);

                        break;

                    // 借款申请
                    case "Flow_Loan":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "诉讼需求申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "借款部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "借款人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "借款类别",
                                        neirong: billheaddata.payModeName,
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.payModeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "backAccountType", leixing: "还款方式", neirong: "", category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "借款用途",
                                        neirong: billheaddata.purpose,
                                        category: "bj",
                                    },
                                ]
                                : [
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "借款类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "backAccountType", leixing: "还款方式", neirong: "", category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "借款用途",
                                        neirong: "",
                                        category: "bj",
                                    },
                                ];

                        this.nulldata = ["借款用途"];
                        this.jibentimeinput = [];

                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "projectId", type: "int", idname: "归属项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            { leixing: "payModeId", type: "int", idname: "借款类别" },

                            { leixing: "backAccountType", type: "string", idname: "" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                            { leixing: "applyAmountChinese", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];

                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,project:true,payMode:true}";
                        this.loadDictionary(dataweijiami);

                        break;

                    // 录用确认申请
                    case "Flow_Confirmation":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "录用确认申请");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "posLevel",
                                        leixing: "职务级别",
                                        neirong: billheaddata.posLevel,
                                        category: "bj-select",
                                        Identification: "posLevel",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.posLevelId,
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: billheaddata.entryDate, category: "bj-time", eventname: "入职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "trySalary", leixing: "试用薪资", neirong: billheaddata.trySalary, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "cOSalary", leixing: "转正薪资", neirong: billheaddata.cOSalary, category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "tryTimeFrom",
                                        leixing: "试用期限",
                                        neirong: billheaddata.tryTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "tryTimeTo",
                                        leixing: "试用期限",
                                        neirong: billheaddata.tryTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "working", leixing: "福利待遇", neirong: billheaddata.working, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "posLevel",
                                        leixing: "职务级别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "posLevel",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "entryDate", leixing: "入职时间", neirong: "", category: "bj-time", eventname: "入职时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "trySalary", leixing: "试用薪资", neirong: "", category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "cOSalary", leixing: "转正薪资", neirong: "", category: "bj" },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "tryTimeFrom",
                                        leixing: "试用期限",
                                        neirong: "",
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "tryTimeTo",
                                        leixing: "试用期限",
                                        neirong: "",
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "working", leixing: "福利待遇", neirong: "", category: "bj" },
                                ];
                        this.nulldata = ["福利待遇"];
                        this.jibentimeinput = [
                            { name: "入职时间", type: "data" },
                            { name: "外开始时间", type: "data" },
                            { name: "外结束时间", type: "data" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "positionId", type: "int", idname: "职务" },
                            { leixing: "posLevelId", type: "int", idname: "职务级别" },
                            { leixing: "entryDate", type: "string", idname: "" },
                            { leixing: "trySalary", type: "string", idname: "" },
                            { leixing: "cOSalary", type: "string", idname: "" },
                            { leixing: "tryTimeFrom", type: "string", idname: "" },
                            { leixing: "tryTimeTo", type: "string", idname: "" },
                            { leixing: "working", type: "string", idname: "" },
                        ];
                        this.jibenFile = [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true,position:true,posLevel:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    // 外出申请
                    case "Flow_GoOut":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id    多个下级时写一个即可
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "出差审批流程");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong: billheaddata.deptName ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:billheaddata.deptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: billheaddata.empName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:billheaddata.empId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: billheaddata.position,
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.positionId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeFrom",
                                        leixing: "外出时间",
                                        neirong: billheaddata.leaveTimeFrom,
                                        category: "bj-time",
                                        eventname: "外开始时间",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "leaveTimeTo",
                                        leixing: "外出时间",
                                        neirong: billheaddata.leaveTimeTo,
                                        category: "bj-time",
                                        eventname: "外结束时间",
                                    },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveTime", leixing: "外出时长", neirong: billheaddata.leaveTime, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "addr", leixing: "外出地点", neirong: billheaddata.place, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "外出事由", neirong: billheaddata.reasons, category: "bj" },
                                ]
                                : [
                                    // {inputtype:'string', keyname:"deptName", leixing: "申请部门", neirong:this.AppdeptName  ,category:"bj-select",Identification:'department',level:'',nextlevel:'申请人员',id:this.AppdeptId},
                                    // {inputtype:'string', keyname:"empName", leixing: "申请人员", neirong: this.AppempName ,category:"bj-select",Identification:'employee',level:'申请部门',nextlevel:'',id:this.AppempId},
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "position",
                                        leixing: "职务",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "position",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },

                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeFrom", leixing: "外出时间", neirong: "", category: "bj-time", eventname: "外开始时间" },
                                    { tishi: "必填", inputtype: "string", keyname: "leaveTimeTo", leixing: "外出时间", neirong: "", category: "bj-time", eventname: "外结束时间" },
                                    { tishi: "必填", inputtype: "number", keyname: "leaveTime", leixing: "外出时长", neirong: billheaddata.leaveTime, category: "bj" },
                                    { tishi: "必填", inputtype: "string", keyname: "addr", leixing: "外出地点", neirong: billheaddata.place, category: "bj" },
                                    { tishi: "", inputtype: "string", keyname: "reasons", leixing: "外出事由", neirong: billheaddata.reasons, category: "bj" },
                                ];
                        this.nulldata = ["外出事由", "职务"];
                        this.jibentimeinput = [
                            { name: "外开始时间", type: "datatime" },
                            { name: "外结束时间", type: "datatime" },
                        ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "positionId", type: "int", idname: "交通工具" },
                            { leixing: "leaveTimeFrom", type: "string", idname: "" },
                            { leixing: "leaveTimeTo", type: "string", idname: "" },
                            { leixing: "leaveTime", type: "int", idname: "" },
                            { leixing: "addr", type: "string", idname: "" },
                            { leixing: "reasons", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,position:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    //补卡申请单
                    case "Flow_ReplaceCard":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = true), //是否显示单据明细
                            (this.titletext = "加班审批");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "补卡事由", neirong: billheaddata.reasons, category: "bj" },
                                ]
                                : [
                                    { tishi: "必填", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "必填", inputtype: "string", keyname: "empName", leixing: "申请人员", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    { tishi: "必填", inputtype: "string", keyname: "reasons", leixing: "补卡事由", neirong: "", category: "bj" },
                                ];
                        this.nulldata = [];
                        // this.jibentimeinput = [
                        //     { name: '外开始时间', type: 'datatime' },
                        //     { name: '外结束时间', type: 'datatime' }
                        // ];
                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人员" },
                            { leixing: "reasons", type: "string", idname: "" },
                        ];
                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        var havedtl = [];
                        if (this.isaddProcess == 1) {
                            for (var d = 0; d < billdtldata.length; d++) {
                                havedtl.push([
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeFrom",
                                        leixing: "补卡时间：",
                                        neirong: billdtldata[d].overtimeFrom,
                                        category: "bj-time",
                                        eventname: "内开始时间",
                                    },
                                    {
                                        inputtype: "string",
                                        istype: "2",
                                        keyname: "overtimeTo",
                                        leixing: "补卡时间：",
                                        neirong: billdtldata[d].overtimeTo,
                                        category: "bj-time",
                                        eventname: "内结束时间",
                                    },
                                ]);
                            }
                        }
                        this.mingxi = {
                            showtext4: "加班时间：",
                            example: [
                                { inputtype: "string", istype: "2", keyname: "overtimeFrom", leixing: "补卡时间：", neirong: "", category: "bj-time", eventname: "内开始时间" },
                                { inputtype: "string", istype: "2", keyname: "overtimeTo", leixing: "补卡时间：", neirong: "", category: "bj-time", eventname: "内结束时间" },
                            ],
                            midata: this.isaddProcess == 1 ? havedtl : [],
                            neitimeinput: [
                                { name: "内开始时间", type: "datatime" },
                                { name: "内结束时间", type: "datatime" },
                            ],
                            billdtl: [
                                { leixing: "overtimeFrom", type: "string", idname: "" },
                                { leixing: "overtimeTo", type: "string", idname: "" },
                            ],
                            showPage: 4,
                            beizhu: false,
                        };
                        var dataweijiami = "{department:true,employee:true}";
                        this.loadDictionary(dataweijiami);
                        break;

                    // 推广费用申请
                    case "Flow_Promotion":
                        // showPage=3    istype=1为头部，2为中间横向的，3为备注，Identification为字典类型，level上级字典，nextlevel下级字典,keyname是匹配传递给后台的参数名，eventname是用来匹配创建时间选择事件
                        //textAlign 用来控制文字居左居中居右012   idname 知道所要传递对应的id
                        var billfiledata = [];
                        var billdtldata = [];
                        var billheaddata = [];
                        if (this.isaddProcess == 1) {
                            billfiledata = this.Processdata.billfile;
                            billdtldata = this.Processdata.billdtl;
                            billheaddata = this.Processdata.billhead[0];
                            this.isnewsave = false; //要用修改后的保存接口
                        }
                        (this.existsAttachment = true), //是否显示附件
                            (this.DocumentDetails = false), //是否显示单据明细
                            (this.titletext = "诉讼需求申请单");
                        this.jibenxinxi =
                            this.isaddProcess == 1
                                ? [
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "借款部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "借款人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "借款类别",
                                        neirong: billheaddata.payModeName,
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: billheaddata.payModeId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: billheaddata.projectName,
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: billheaddata.projectId,
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: billheaddata.pEmpName,
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: billheaddata.pEmpId,
                                    },
                                    { tishi: "", inputtype: "string", keyname: "backAccountType", leixing: "还款方式", neirong: "", category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "借款用途",
                                        neirong: billheaddata.purpose,
                                        category: "bj",
                                    },
                                ]
                                : [
                                    { tishi: "", inputtype: "string", keyname: "deptName", leixing: "申请部门", neirong: this.AppdeptName, category: "nobj", id: this.AppdeptId },
                                    { tishi: "", inputtype: "string", keyname: "empName", leixing: "申请人", neirong: this.AppempName, category: "nobj", id: this.AppempId },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "payModeName",
                                        leixing: "借款类别",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "payMode",
                                        level: "",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "projectName",
                                        leixing: "归属项目",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "project",
                                        level: "",
                                        nextlevel: "项目经理",
                                        id: "",
                                    },
                                    {
                                        tishi: "必填",
                                        inputtype: "string",
                                        keyname: "pEmpName",
                                        leixing: "项目经理",
                                        neirong: "",
                                        category: "bj-select",
                                        Identification: "employee",
                                        level: "项目",
                                        nextlevel: "",
                                        id: "",
                                    },
                                    { tishi: "", inputtype: "string", keyname: "backAccountType", leixing: "还款方式", neirong: "", category: "bj" },
                                    {
                                        tishi: "金额必须大于0",
                                        inputtype: "number",
                                        keyname: "applyAmount",
                                        leixing: "申请金额",
                                        neirong: billheaddata.applyAmount,
                                        category: "bj",
                                        maxlength: "value=value.replace(/-/g,'');if(value.indexOf('.')>0)value=value.slice(0,(value.indexOf('.')+3))",
                                    },
                                    { tishi: "必填", inputtype: "string", keyname: "applyAmountChinese", leixing: "金额(大写)", neirong: billheaddata.applyAmountChinese, category: "nobj" },
                                    {
                                        tishi: "",
                                        inputtype: "string",
                                        keyname: "purpose",
                                        leixing: "借款用途",
                                        neirong: "",
                                        category: "bj",
                                    },
                                ];

                        this.nulldata = ["借款用途"];
                        this.jibentimeinput = [];

                        this.billhead = [
                            { leixing: "deptId", type: "int", idname: "申请部门" },
                            { leixing: "empId", type: "int", idname: "申请人" },
                            { leixing: "projectId", type: "int", idname: "归属项目" },
                            { leixing: "pEmpId", type: "int", idname: "项目经理" },
                            { leixing: "payModeId", type: "int", idname: "借款类别" },

                            { leixing: "backAccountType", type: "string", idname: "" },
                            { leixing: "applyAmount", type: "int", idname: "" },
                            { leixing: "applyAmountChinese", type: "string", idname: "" },
                            { leixing: "purpose", type: "string", idname: "" },
                        ];

                        this.jibenFile = this.isaddProcess == 1 ? billfiledata : [];
                        this.mingxi = {
                            showtext4: "",
                            example: [],
                            midata: [],
                            neitimeinput: [],
                            billdtl: [],
                            showPage: 3,
                            beizhu: true,
                        };
                        var dataweijiami = "{department:true,employee:true,project:true,payMode:true}";
                        this.loadDictionary(dataweijiami);

                        break;
                }

            },
            addEngcaseImgFunimg(e) {
                // var reader=new FileReader();
                // console.log(e.target.files[0])
                // console.log(e.target.files[0].name)
                // var imgname=e.target.files[0].name;
                // var that=this;
                // reader.readAsDataURL(e.target.files[0]);
                // reader.onloadend = function () {
                //     var dataURL = reader.result;//base64
                //     console.log(dataURL);
                //     dataURL=dataURL.substring(dataURL.indexOf(",")+1);
                //     var dataweijiami="{billId:"+that.billId+",fileName:'"+imgname+"',billKey:'"+that.billKey+"'}";
                //     var jianmidata = that.Encrypt(dataweijiami);  //进行aes加密
                //     var chanshu = "{appLoginToken:'" + that.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                //     url = that.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                //     var fanhuidata = that.SoapRequest("WorkFlowWebService", "upload", chanshu,dataURL, url); //调用请求
                //     var jiemifanhuidata = that.Decrypt(fanhuidata.data);  //请求成功返回的data进行解密
                //     var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                //     that.selectitemData=zuizhongdata;
                //     console.log(zuizhongdata)
                //     that.jibenFile.push({fileName:zuizhongdata.fileName,filePath:zuizhongdata.filePath,uploadMan:zuizhongdata.uploadMan,uploadManId:zuizhongdata.uploadManId,})
                // };
            },
            //创建时间选择框事件
            timeinput() {
                var aa = this.jibentimeinput;
                var that = this;
                var minStep = 1;
                for (var x = 0; x < aa.length; x++) {
                    if (that.billKey == "Flow_ApplyLeave" || that.billKey == "Flow_BreakDown" || that.billKey == "Flow_RsApplyLeave" || that.billKey == "Flow_RsBreakDown") {
                        minStep = 30;
                    }
                    if (aa[x].type == "datatime") {
                        new Jdate({
                            el: "." + aa[x].name,
                            format: "YYYY-MM-DD hh:mm",
                            beginYear: 2000,
                            endYear: 2100,
                            minStep: minStep,
                            init: function () {
                                var input = document.getElementsByTagName("input");
                                for (var i = 0; i < input.length; i++) {
                                    input[i].blur();
                                }
                            },
                            confirm: function (date) {
                                // console.log(date);
                                if (date.indexOf(":") == date.length - 1) {
                                    date = date + "00";
                                }

                                for (var i = 0; i < that.jibenxinxi.length; i++) {
                                    if (that.jibenxinxi[i].eventname == this.config.el.substring(1)) {
                                        that.jibenxinxi[i].neirong = date + ":00";
                                        // that.$set(that.jibenxinxi[i],"neirong",data)
                                    }
                                }
                                console.log("确定按钮触发");
                                // console.log(date);
                            },
                        });
                    } else {
                        new Jdate({
                            el: "." + aa[x].name,
                            format: "YYYY-MM-DD",
                            beginYear: 2000,
                            endYear: 2100,
                            init: function () {
                                var input = document.getElementsByTagName("input");
                                for (var i = 0; i < input.length; i++) {
                                    input[i].blur();
                                }
                            },
                            confirm: function (date) {
                                for (var i = 0; i < that.jibenxinxi.length; i++) {
                                    if (that.jibenxinxi[i].eventname == this.config.el.substring(1)) {
                                        that.jibenxinxi[i].neirong = date;
                                        // that.$set(that.jibenxinxi[i],"neirong",data)
                                    }
                                }
                                console.log("确定按钮触发");
                            },
                        });
                    }
                }

                // new Jdate({
                //     el:'#内结束时间',
                //     format: 'YYYY-MM-DD hh:mm',
                //     beginYear: 2000,
                //     endYear: 2100,
                // })
            },
            //基本信息外层的下拉框的点击事件
            selectClick1(row) {
                const { Identification: name, level, leixing, relateKey, relateId, relateDict } = row
                console.info("nextAssign", row, this.jibenxinxi);

                this.selectName = "";
                this.clickIdentification = name;
                this.clickLevel = level;
                this.clickLeixing = leixing;
                console.log("selectclick1");
                console.log(this.selectitemData[name]);
                this.xialadata = [];
                // var level = level;
                var uplevel = "";
                if (level != "") {
                    for (var x = 0; x < this.jibenxinxi.length; x++) {
                        if (this.jibenxinxi[x].leixing == level) {
                            uplevel = this.jibenxinxi[x].id == undefined ? "-1" : this.jibenxinxi[x].id;
                        }
                    }

                    console.log(uplevel);
                    console.log(name);
                    for (var i = 0; i < this.selectitemData[name].length; i++) {
                        if (this.selectitemData[name][i].deptId == uplevel) {
                            this.xialadata.push(this.selectitemData[name][i]);
                        }
                    }
                } else {
                    this.xialadata = this.selectitemData[name];
                }
                this.jibenSelectname = leixing;
                var height = this.xialadata.length * 40 + "px";

                $(".smd-box1").css({ height: height });
                $(".s-M-Details1").fadeIn();
                $(".smd-box1").fadeIn();
                $(".smd-box1-title").fadeIn();
            },
            //单据明细下拉框的点击事件,name指字典的分类名，level指上一级的分类名，leixing指当前点的类型名
            selectClick(name, level, leixing) {
                this.selectName = "";
                this.clickIdentification = name;
                this.clickLevel = level;
                this.clickLeixing = leixing;
                console.log("selectclick");
                console.log(this.selectitemData[name]);
                this.xialadata = [];
                var level = level;
                var uplevel = "";
                if (this.isaddDetails) {
                    var index = this.mingxi.midata.length - 1;
                } else {
                    var index = this.ModelDetailsDataIndex;
                }
                if (level != "") {
                    for (var x = 0; x < this.mingxi.midata[index].length; x++) {
                        if (this.mingxi.midata[index][x].leixing == level) {
                            uplevel = this.mingxi.midata[index][x].id == undefined ? "-1" : this.mingxi.midata[index][x].id;
                        }
                    }

                    for (var i = 0; i < this.selectitemData[name].length; i++) {
                        if (this.selectitemData[name][i].deptId == uplevel) {
                            this.xialadata.push(this.selectitemData[name][i]);
                        }
                    }
                } else {
                    this.xialadata = this.selectitemData[name];
                }
                this.jibenSelectname = leixing;

                var height = this.xialadata.length * 40 + "px";
                var height = "1000px";

                $(".smd-box").css({ height: height });
                $(".s-M-Details").fadeIn();
                $(".smd-box").fadeIn();
                $(".smd-box1-title").fadeIn();
            },
            //新增时获取的billid
            addflow() {
                var dataweijiami = "{billKey:'" + this.billKey + "'}";
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                console.info("dataweijiami********", dataweijiami);
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = this.SoapRequest("WorkFlowWebService", "addflow", chanshu, "", url); //调用请求
                if (fanhuidata.status == 0) {
                    var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                    var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                    this.billId = zuizhongdata.billId;
                    this.titletext3 = zuizhongdata;
                    this.DataClassification(this.billKey);

                    console.info("东子获取新增加密数据***", zuizhongdata);
                } else {
                    this.failurename = "获取失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
                // console.log(zuizhongdata)
            },
            //修改单据，获得对应的单据详情信息
            flowbill() {
                var dataweijiami = "{billId:" + this.billId + ",billKey:'" + this.billKey + "'}";
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = this.SoapRequest("WorkFlowWebService", "flowbill", chanshu, "", url); //调用请求
                if (fanhuidata.status == 0) {
                    var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                    var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                    console.log(zuizhongdata);
                    this.titletext3 = zuizhongdata;
                    this.Processdata = zuizhongdata;
                    this.DataClassification(this.billKey);
                } else {
                    this.failurename = "获取失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
            },
            //字典请求
            loadDictionary(dataweijiami) {
                var dataweijiami = dataweijiami;
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = this.SoapRequest("WorkFlowWebService", "loadDictionary", chanshu, "", url); //调用请求
                var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                this.selectitemData = zuizhongdata;
                console.log("zuizhongdata", this.selectitemData);
            },
            // 请求函数
            SoapRequest(interface, method, parameter, imgtext) {
                var data;
                //SOAP 1.1 请求报文格式，1.2在网上可以找到
                data = '<?xml version="1.0" encoding="utf-8"?>';
                data +=
                    '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://webservice.mid.myerp.bokesoft.com" xmlns:q0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:something="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">';
                data += "<soapenv:Body>";
                data += "<ns0:unsafeInvokeService>";
                data += '<sServiceName soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:string">' + interface + "</sServiceName>";
                data += '<args q0:arrayType="xsd:anyType[2]" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="q0:Array">';
                data += "<q0:string>" + method + "</q0:string>";
                data += "<q0:string>" + parameter + "</q0:string>";
                data += "<q0:string>" + imgtext + "</q0:string>";
                data += "</args>";
                data += "</ns0:unsafeInvokeService>";
                data += "</soapenv:Body>";
                data += "</soapenv:Envelope>";

                var xmlhttp = CreateXMLHttp();
                //console.log(url)
                var URL = url;
                xmlhttp.open("POST", URL, false);
                xmlhttp.setRequestHeader("Content-Type", "application/soap+xml; charset=utf-8"); //SOAP 1.1为text/xml ； 1.2为 application/soap+xml
                xmlhttp.setRequestHeader("SOAPAction", "wsdl");
                //console.log(data);
                xmlhttp.send(data);

                var dd = xmlhttp.responseXML.getElementsByTagName("unsafeInvokeServiceReturn");
                //var dd=XMLtoString(xmlhttp.responseXML.getElementsByTagName("unsafeInvokeServiceReturn")[0])+"";
                //console.log(xmlhttp.responseXML);

                var ee = dd[0].textContent;

                var ff = JSON.parse(ee);
                //console.log(ff.status);
                if (ff.status == -5) {
                    if (type == 0) {
                        window.webkit.messageHandlers.Submission.postMessage("-5");
                    } else {
                        window.android.showOfflineWarm();
                    }
                }
                this.titletext1 = ff;
                return ff;
            },
            //aes加密
            Encrypt(word) {
                srcs = CryptoJS.enc.Utf8.parse(word);
                var encrypted = CryptoJS.AES.encrypt(srcs, this.key, { iv: this.iv, mode: CryptoJS.mode.CBC, Padding: CryptoJS.pad.Pkcs7 });
                return encrypted.ciphertext.toString().toUpperCase();
            },
            //aes解密
            Decrypt(word) {
                var encryptedHexStr = CryptoJS.enc.Hex.parse(word);
                var srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr);
                var decrypt = CryptoJS.AES.decrypt(srcs, this.key, { iv: this.iv, mode: CryptoJS.mode.CBC, Padding: CryptoJS.pad.Pkcs7 });
                var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
                return decryptedStr.toString();
            },

            //删除附件
            deleteFile(item, index) {
                this.annexitem = item;
                this.annexindex = index;
                $(".smd-boxDelete").fadeIn();
                $(".s-M-DetailsDelete").fadeIn();
            },
            //附件点击交互app预览
            annexPreview(item) {
                if (this.iostype == 0) {
                    window.webkit.messageHandlers.Enclosure.postMessage(item.filePath);
                } else {
                    window.android.showAnnex(item.filePath, item.fileName);
                }
            },
            //确定按钮
            annexDeleteDetermine() {
                if (this.isnewsave) {
                    this.jibenFile.splice(this.annexindex, 1);
                    $(".smd-boxDelete").fadeOut();
                    $(".s-M-DetailsDelete").fadeOut();
                } else {
                    var data = this.annexitem;
                    var that = this;
                    var dataweijiami = "{billId:" + that.billId + ",fileName:'" + data.fileName + "',billKey:'" + that.billKey + "'}";

                    var jianmidata = that.Encrypt(dataweijiami); //进行aes加密
                    var chanshu = "{appLoginToken:'" + that.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                    url = that.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                    var fanhuidata = that.SoapRequest("WorkFlowWebService", "deletefile", chanshu, "", url); //调用请求
                    var jiemifanhuidata = that.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                    if (fanhuidata.status == 0) {
                        that.jibenFile.splice(that.annexindex, 1);
                        $(".smd-boxDelete").fadeOut();
                        $(".s-M-DetailsDelete").fadeOut();
                    } else {
                        $(".smd-boxDelete").fadeOut();
                        $(".s-M-DetailsDelete").fadeOut();
                        that.failurename = "删除失败";
                        $(".smd-failure").fadeIn();
                        $(".s-M-Detailsfailure").fadeIn();
                    }
                    //  var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                    //  console.log(zuizhongdata)
                }
            },
            //取消按钮
            annexDeleteCancel() {
                $(".smd-boxDelete").fadeOut();
                $(".s-M-DetailsDelete").fadeOut();
            },
            //保存按钮
            saveclick() {
                for (var p = 0; p < this.jibenxinxi.length; p++) {
                    if (this.jibenxinxi[p].neirong == "0" && this.jibenxinxi[p].tishi == "金额必须大于0") {
                        this.nullname = this.jibenxinxi[p].leixing + "必须大于0";
                        $(".smd-boxNull").fadeIn();
                        $(".s-M-DetailsNull").fadeIn();
                        return;
                    } else {
                        if (this.jibenxinxi[p].neirong == "") {
                            if (this.nulldata.indexOf(this.jibenxinxi[p].leixing) > -1) {
                                // return
                            } else {
                                this.nullname = this.jibenxinxi[p].leixing + "不能为空";
                                $(".smd-boxNull").fadeIn();
                                $(".s-M-DetailsNull").fadeIn();
                                return;
                            }
                        }
                    }
                }
                this.loadingtext = "保存中";
                $(".smd-boxLoading").fadeIn();
                $(".s-M-DetailsLoading").fadeIn();
                // console.log(this.mingxi.midata);
                var midata = this.mingxi.midata;
                var dtldata = this.mingxi.billdtl;
                var dtldatatext = "";
                for (var i = 0; i < midata.length; i++) {
                    dtldatatext += "{";
                    for (var x = 0; x < dtldata.length; x++) {
                        if (dtldata[x].idname != "") {
                            for (var z = 0; z < midata[i].length; z++) {
                                if (dtldata[x].idname == midata[i][z].leixing) {
                                    if (dtldata[x].type == "int") {
                                        if (midata[i][z].id == "") {
                                            dtldatatext += dtldata[x].leixing + ":-1,";
                                        } else {
                                            dtldatatext += dtldata[x].leixing + ":" + midata[i][z].id + ",";
                                        }
                                    }
                                }
                            }
                        } else {
                            for (var y = 0; y < midata[i].length; y++) {
                                if (dtldata[x].leixing == midata[i][y].keyname) {
                                    if (dtldata[x].type == "int") {
                                        if (midata[i][y].neirong == "") {
                                            dtldatatext += dtldata[x].leixing + ":0,";
                                        } else {
                                            dtldatatext += dtldata[x].leixing + ":" + midata[i][y].neirong + ",";
                                        }
                                    }
                                    if (dtldata[x].type == "string") {
                                        dtldatatext += dtldata[x].leixing + ":'" + midata[i][y].neirong + "',";
                                    }
                                }
                            }
                        }
                    }
                    dtldatatext = dtldatatext.substring(0, dtldatatext.length - 1);
                    dtldatatext += "},";
                }
                // console.log(dtldatatext);

                var filedata = this.jibenFile;
                // this.titletext2=filedata
                var filetext = "";
                for (var f = 0; f < filedata.length; f++) {
                    filetext += "{uploadMan:'" + filedata[f].uploadMan + "',fileUpTime:'" + filedata[f].fileUpTime + "',fileName:'" + filedata[f].fileName + "'},";
                }
                this.titletext3 = filetext;

                var data = "";
                console.log(this.jibenxinxi);
                //     console.log(this.mingxi.midata)
                for (var i = 0; i < this.billhead.length; i++) {
                    if (this.billhead[i].idname != "") {
                        for (var y = 0; y < this.jibenxinxi.length; y++) {
                            if (this.billhead[i].idname == this.jibenxinxi[y].leixing) {
                                if (this.billhead[i].type == "int") {
                                    if (this.jibenxinxi[y].id == "") {
                                        data += this.billhead[i].leixing + ":-1,";
                                    } else {
                                        data += this.billhead[i].leixing + ":" + this.jibenxinxi[y].id + ",";
                                    }
                                }
                                if (this.billhead[i].type == "custom") {
                                    console.info("冬子this.jibenxinxi[x]", this.jibenxinxi[y]);
                                    data += this.billhead[i].leixing + ":'" + this.jibenxinxi[y].id + "',";
                                }
                            }
                        }
                    } else {
                        for (var x = 0; x < this.jibenxinxi.length; x++) {
                            if (this.billhead[i].leixing == this.jibenxinxi[x].keyname) {
                                if (this.billhead[i].type == "int") {
                                    if (this.jibenxinxi[x].neirong == "") {
                                        data += this.billhead[i].leixing + ":0,";
                                    } else {
                                        data += this.billhead[i].leixing + ":" + this.jibenxinxi[x].neirong + ",";
                                    }
                                }
                                if (this.billhead[i].type == "string") {
                                    data += this.billhead[i].leixing + ":'" + this.jibenxinxi[x].neirong + "',";
                                }
                            }
                        }
                    }
                }
                if (this.isnewsave) {
                    data =
                        "{billKey:'" +
                        this.billKey +
                        "',billfile:[" +
                        filetext.substring(0, filetext.length - 1) +
                        "],billdtl:[" +
                        dtldatatext.substring(0, dtldatatext.length - 1) +
                        "],billhead:[{" +
                        data.substring(0, data.length - 1) +
                        ",billId:" +
                        this.billId +
                        "}]}";
                } else {
                    data =
                        "{billKey:'" +
                        this.billKey +
                        "',billfile:[" +
                        filetext.substring(0, filetext.length - 1) +
                        "],billdtl:[" +
                        dtldatatext.substring(0, dtldatatext.length - 1) +
                        "],billhead:[{" +
                        data.substring(0, data.length - 1) +
                        ",billId:" +
                        this.billId +
                        "}]}";
                }

                this.titletext3 = data;
                var dataweijiami = data;
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                console.info("dataweijiami东子", data, this.isnewsave, this.billId);
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                if (this.isnewsave) {
                    var fanhuidata = this.SoapRequest("WorkFlowWebService", "saveflow", chanshu, "", url); //调用请求
                } else {
                    var fanhuidata = this.SoapRequest("WorkFlowWebService", "updateflow", chanshu, "", url); //调用请求
                }
                // console.log(fanhuidata)
                var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                // console.log(jiemifanhuidata)
                if (fanhuidata.status == 0) {
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                    this.isdeit = false;
                    if (this.isaddProcess == 0) {
                        $(".bottom-btn2").show();
                        $(".bottom-btn1").hide();
                    } else {
                        $(".bottom-btn11").show();
                        $(".bottom-btn22").hide();
                    }
                } else {
                    this.failurename = "保存失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
            },
            //取消按钮
            cancelClick() {
                this.isdeit = false;
                this.flowbill();
                $(".bottom-btn11").show();
                $(".bottom-btn22").hide();
            },
            ProcessDeleteDetermine() {
                var dataweijiami = "{billId:" + this.billId + ",billKey:'" + this.billKey + "'}";
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = this.SoapRequest("WorkFlowWebService", "deleteflow", chanshu, "", url); //调用请求
                var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式
                if (fanhuidata.status == 0) {
                    $(".smd-boxDeleteProcess").fadeOut();
                    $(".s-M-DetailsDelete").fadeOut();
                    if (this.iostype == 0) {
                        window.webkit.messageHandlers.reload.postMessage(fanhuidata.message);
                    } else {
                        window.android.getResultMsg(fanhuidata.message, 2);
                    }
                } else {
                    $(".smd-boxDeleteProcess").fadeOut();
                    $(".s-M-DetailsDelete").fadeOut();
                    this.failurename = "删除失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
            },
            ProcessDeleteCancel() {
                $(".smd-boxDeleteProcess").fadeOut();
                $(".s-M-DetailsDelete").fadeOut();
            },
            //删除流程按钮
            deleteclick() {
                $(".smd-boxDeleteProcess").fadeIn();
                $(".s-M-DetailsDelete").fadeIn();
                // console.log(zuizhongdata)
                // console.log(fanhuidata.message)
            },
            //编辑按钮
            editclck() {
                this.isnewsave = false;
                this.isdelete = true;
                this.isdeit = true;
                // console.log(this.jibenxinxi)
                if (this.isaddProcess == 0) {
                    $(".bottom-btn1").show();
                    $(".bottom-btn2").hide();
                } else {
                    $(".bottom-btn22").show();
                    $(".bottom-btn11").hide();
                }
            },
            //提交按钮
            submitclick() {
                this.loadingtext = "提交中";
                $(".smd-boxLoading").fadeIn();
                $(".s-M-DetailsLoading").fadeIn();
                var dataweijiami = "{billId:" + this.billId + ",billKey:'" + this.billKey + "'}";
                var jianmidata = this.Encrypt(dataweijiami); //进行aes加密
                var chanshu = "{appLoginToken:'" + this.appLoginToken + "',data:'" + jianmidata + "'}"; //数据拼接
                url = this.hostUrl + "Yigo1.6/services/MapWebService?wsdl"; //请求地址
                var fanhuidata = this.SoapRequest("WorkFlowWebService", "submitflow", chanshu, "", url); //调用请求
                var jiemifanhuidata = this.Decrypt(fanhuidata.data); //请求成功返回的data进行解密
                var zuizhongdata = JSON.parse(jiemifanhuidata); //解密后转成json格式

                console.info("测试东子打印提交", dataweijiami);
                if (fanhuidata.status == 0) {
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                    if (this.iostype == 0) {
                        window.webkit.messageHandlers.reload.postMessage(fanhuidata.message);
                    } else {
                        window.android.getResultMsg(fanhuidata.message, 2);
                    }
                } else {
                    $(".smd-boxLoading").fadeOut();
                    $(".s-M-DetailsLoading").fadeOut();
                    this.failurename = "提交失败";
                    $(".smd-failure").fadeIn();
                    $(".s-M-Detailsfailure").fadeIn();
                }
            },
            //明细添加按钮
            addDetails() {
                $(".s-M-Details").fadeIn();
                $(".Model-Details").fadeIn();
                // this.mingxi.data.push(["","","","",""])
                this.mingxi.midata.push(JSON.parse(JSON.stringify(this.mingxi.example)));
                var that = this;
                setTimeout(function () {
                    var bb = that.mingxi.neitimeinput;
                    var minStep = 1;
                    for (var y = 0; y < bb.length; y++) {
                        if (that.billKey == "Flow_ApplyLeave" || that.billKey == "Flow_BreakDown" || that.billKey == "Flow_RsApplyLeave" || that.billKey == "Flow_RsBreakDown") {
                            minStep = 30;
                        }
                        if (bb[y].type == "datatime") {
                            new Jdate({
                                el: "." + bb[y].name,
                                format: "YYYY-MM-DD hh:mm",
                                beginYear: 2000,
                                endYear: 2100,
                                minStep: minStep,
                                init: function () {
                                    var input = document.getElementsByTagName("input");
                                    for (var i = 0; i < input.length; i++) {
                                        input[i].blur();
                                    }
                                },
                                confirm: function (date) {
                                    if (date.indexOf(":") == date.length - 1) {
                                        date = date + "00";
                                    }
                                    for (var i = 0; i < that.mingxi.midata[that.ModelDetailsDataIndex].length; i++) {
                                        if (that.mingxi.midata[that.ModelDetailsDataIndex][i].eventname == this.config.el.substring(1)) {
                                            that.mingxi.midata[that.ModelDetailsDataIndex][i].neirong = date + ":00";
                                            // that.$set(that.jibenxinxi[i],"neirong",data)
                                        }
                                    }
                                    console.log("确定按钮触发");
                                },
                            });
                        } else {
                            new Jdate({
                                el: "." + bb[y].name,
                                format: "YYYY-MM-DD",
                                beginYear: 2000,
                                endYear: 2100,
                                init: function () {
                                    var input = document.getElementsByTagName("input");
                                    for (var i = 0; i < input.length; i++) {
                                        input[i].blur();
                                    }
                                },
                                confirm: function (date) {
                                    for (var i = 0; i < that.mingxi.midata[that.ModelDetailsDataIndex].length; i++) {
                                        if (that.mingxi.midata[that.ModelDetailsDataIndex][i].eventname == this.config.el.substring(1)) {
                                            that.mingxi.midata[that.ModelDetailsDataIndex][i].neirong = date;
                                            // that.$set(that.jibenxinxi[i],"neirong",data)
                                        }
                                    }
                                    console.log("确定按钮触发");
                                },
                            });
                        }
                    }
                }, 1000);
                // console.log(this.mingxi.data[0])
                console.log(this.mingxi.midata);
                this.isaddDetails = true;
                this.ModelDetailsDataIndex = this.mingxi.midata.length - 1;
            },
            //明细标签点击事件
            listItemClick(index) {
                if (this.isdeit) {
                    this.ModelDetailsDataIndex = index;

                    this.oldDetailsData = JSON.parse(JSON.stringify(this.mingxi.midata[index]));
                    console.log(this.oldDetailsData);
                    this.isaddDetails = false;
                    $(".s-M-Details").fadeIn();
                    $(".Model-Details").fadeIn();
                } else {
                    return;
                }
            },
            //详情界面关闭
            modelclose() {
                if (this.isaddDetails) {
                    this.mingxi.midata.pop();
                } else {
                    var data = this.oldDetailsData;
                    this.mingxi.midata.splice(this.ModelDetailsDataIndex, 1, data);
                }
                $(".Model-Details").fadeOut();
                $(".s-M-Details").fadeOut();
            },

            //打开字典界面
            selectDictionary() {
                // $(".Model-Details").fadeOut();
                $(".smd-box").css({ height: "10000px" });
                // $(".s-M-Details").fadeIn();
                $(".smd-box").fadeIn();
                $(".smd-box1-title").fadeIn();
            },
            checkXialadata(data) {
                let _list = {};
                for (var i = 0; i < this.jibenxinxi.length; i++) {
                    if (this.jibenxinxi[i].leixing == this.jibenSelectname) {
                        _list = this.jibenxinxi[i];
                    }
                }
                let _idArr = _list.id ? _list.id?.split(";") ?? [] : [];
                const _index = _idArr.indexOf(String(data.id));

                return _index > -1;
            },
            //基本信息外层的下拉选项框选项点击事件
            smdListItemClick1(data) {
                console.info("data12", data, this.jibenSelectname)

                for (var i = 0; i < this.jibenxinxi.length; i++) {
                    if (this.jibenxinxi[i].leixing == this.jibenSelectname) {
                        if (data.multiple) {
                            let _neirongArr = this.jibenxinxi[i].neirong ? this.jibenxinxi[i].neirong?.split(";") ?? [] : [];
                            let _idArr = this.jibenxinxi[i].id ? this.jibenxinxi[i].id?.split(";") ?? [] : [];

                            const _index = _idArr.indexOf(data.id);
                            console.info("_idArr", _idArr, data.id, _index);
                            if (_index > -1) {
                                _neirongArr.splice(_index, 1);
                                _idArr.splice(_index, 1);
                            } else {
                                _neirongArr.push(data.name);
                                _idArr.push(String(data.id));
                            }

                            this.$set(this.jibenxinxi[i], "neirong", _neirongArr.join(";"));
                            this.$set(this.jibenxinxi[i], "id", _idArr.join(";"));
                        } else {
                            this.$set(this.jibenxinxi[i], "neirong", data.name);
                            this.$set(this.jibenxinxi[i], "id", data.id);
                        }

                        if (this.jibenxinxi[i].nextlevel != "") {
                            for (var x = 0; x < this.jibenxinxi.length; x++) {
                                if (this.jibenxinxi[x].level == this.jibenxinxi[i].leixing) {
                                    this.$set(this.jibenxinxi[x], "neirong", "");
                                }
                            }
                        }

                        // 如果有子集
                        const { relateKey, relateId, relateDict } = this.jibenxinxi[i]
                        if (relateKey) {
                            const _relateIndex = this.jibenxinxi.findIndex(item => item.keyname == relateKey)
                            console.info("relateKey, relateId, relateDict", relateKey, relateId, relateDict)
                            console.info("relateKey", _relateIndex, this.jibenxinxi[_relateIndex], data, this.selectitemData)

                            const _dict = this.selectitemData[relateDict]
                            
                            this.$set(this.jibenxinxi[_relateIndex], "id", data[relateId]);
                            this.$set(this.jibenxinxi[_relateIndex], "neirong", _dict.find(e => e.id == data[relateId]).name);
                        }

                        $(".smd-box1").fadeOut();
                        $(".smd-box1-title").fadeOut();
                        $(".s-M-Details1").fadeOut();
                        return;
                    }
                }
            },
            //单机明细的下拉选项框选项点击事件
            smdListItemClick(data) {
                if (this.isaddDetails) {
                    var index = this.mingxi.midata.length - 1;
                } else {
                    var index = this.ModelDetailsDataIndex;
                }
                for (var i = 0; i < this.mingxi.midata[index].length; i++) {
                    if (this.mingxi.midata[index][i].leixing == this.jibenSelectname) {
                        this.$set(this.mingxi.midata[index][i], "neirong", data.name);
                        this.$set(this.mingxi.midata[index][i], "id", data.id);
                        if (this.mingxi.midata[index][i].nextlevel != "") {
                            for (var x = 0; x < this.mingxi.midata[index].length; x++) {
                                if (this.mingxi.midata[index][x].level == this.mingxi.midata[index][i].leixing) {
                                    this.$set(this.mingxi.midata[index][x], "neirong", "");
                                }
                            }
                        }
                        $(".smd-box").fadeOut();
                        $(".smd-box1-title").fadeOut();
                        // $(".s-M-Details").fadeOut();
                        return;
                    }
                }
            },
            //黑色背景点击事件
            sMDetailsClick() {
                $(".smd-box").fadeOut();
                $(".smd-box1-title").fadeOut();
            },
            //黑色背景点击事件
            sMDetailsClick1() {
                $(".smd-box1").fadeOut();
                $(".smd-box1-title").fadeOut();
                $(".s-M-Details1").fadeOut();
            },
            //详情确定事件
            MDsave() {
                console.log(this.mingxi.midata);
                $(".Model-Details").fadeOut();
                $(".s-M-Details").fadeOut();
            },
            //详情删除事件
            MDdelete() {
                this.mingxi.midata.splice(this.ModelDetailsDataIndex, 1);
                $(".Model-Details").fadeOut();
                $(".s-M-Details").fadeOut();
            },
        },
    });
});
